megera716
Board Regular
- Joined
- Jan 3, 2013
- Messages
- 146
- Office Version
- 365
- Platform
- Windows
I've got a table of people, procedures they performed by day and the duration of each procedure. Comp structure is such that the employee's pay for that day is the greatest of 3 options:
1) Actual hours worked * $100
2) $750
3) If 3 procedures are performed in a day, $500 for the first one, $250 for the second, $250 for the third. So basically $1000.
That is their pay for the WHOLE DAY so I'm struggling with how to write this so it doesn't try to put the daily pay amount on every row for that day. I am fine if it's easier for the formula to be written to say $375 ($750/2) for Procedure 1 and $375 for Procedure 2 instead of $750 on #1 and $0 on #2. This is extra "fun" (to me) because we're working with times here and I know that can make things wonky. Like if I multiply Employee 1's December 1 total time worked of 4:36 (4h 36m) by $100, the result is $19.17 .
Yes, I did change the formula on Row 6 just to see if I could make that work and that one actually works the best of the three! But it's only for when they do have 3 procedures that day -- notice the $500, $250, $250 on Employee 2 for 12/5/2023 -- but obviously I want one formula to work the whole way down.
I would be eternally grateful to anyone who can help me automate this!
1) Actual hours worked * $100
2) $750
3) If 3 procedures are performed in a day, $500 for the first one, $250 for the second, $250 for the third. So basically $1000.
That is their pay for the WHOLE DAY so I'm struggling with how to write this so it doesn't try to put the daily pay amount on every row for that day. I am fine if it's easier for the formula to be written to say $375 ($750/2) for Procedure 1 and $375 for Procedure 2 instead of $750 on #1 and $0 on #2. This is extra "fun" (to me) because we're working with times here and I know that can make things wonky. Like if I multiply Employee 1's December 1 total time worked of 4:36 (4h 36m) by $100, the result is $19.17 .
Yes, I did change the formula on Row 6 just to see if I could make that work and that one actually works the best of the three! But it's only for when they do have 3 procedures that day -- notice the $500, $250, $250 on Employee 2 for 12/5/2023 -- but obviously I want one formula to work the whole way down.
I would be eternally grateful to anyone who can help me automate this!