Hi,
I hope this finds you well.
I'm putting together a solution that involves a business rule.
If an employee is home based, and drives to to a work site in the morning, then does other trips on the same day, we have a rule that deducts 15 miles from the day, regardless of the number of trips / distance.
When the folks log their expenses, as usual it will be a row per trip, I want to be able to find a single row per date and deduct the 15 miles. Ideally from the first row.
Please see the snip below. Any help would be great.
To make the Daily Deduction col be checked I'm using the formula below:
=IF(COUNTIFS([Trip Date]:[Trip Date], [Trip Date]@row, [Row ID]:[Row ID], @cell <= [Row ID]@row) = 1, 1)
I want to add to the IF to check if the Home Based col is "Y", but I'm getting unparseable.
If I could then combine it with the Formula in the Claimed Business Miles col, that would be great. The formula is:
=IF([Daily Deduction]@row = 1, ([Business Miles]@row - [Deducted Miles]@row), [Business Miles]@row)
As ever any help would be great.
AC