Our company calculates the number of PTO hours earned, based on number of years in service and pay period depending on years of service; less than 5 years (7.08), greater than 5 years (8.62). I only want the earned PTO hours added to current PTO hours on Pay Day. Pay Day is every other Friday.
I have set up two sheets and a flow. Sheet 1 is Team Member Information. Sheet 2 is Payroll Information. The flow looks at Today's date and updates current date.
A formula uses the MATCH function and compares Current Date to Pay Day in Payroll Information. If there is a match it returns the PTO hours for the pay period. If there is not a match it returns #NO MATCH. I really need and want it to return 0 when there is not a match (indicating not a pay day no hours earned).
I also need it to store previous hours which consist of current hours, minus approved PTO hours.
Current formula only works on a Pay Day
=(IF([Years Employed]@row >= 5, INDEX({Payroll Information 02-06 | Five Yrs or More}, MATCH([Today's Date]@row, {Payroll Information 02-06 | Pay Day}, 0)), INDEX({Payroll Information 02-06 | Less than Five Yrs}, MATCH([Today's Date]@row, {Payroll Information 02-06 | Pay Day}, 0))))
It a match is not found (any other day than pay day) it returns #NO MATCH, it is correct because if it isn't a payday it won't find a match. Help please. I have been fooling with this for days, and days... I am new to Smartsheets and this is kicking my tail... I need a libation!!