First Occurrence Add Value To Total

scrounge33

New Member
Joined
Oct 15, 2015
Messages
2
I've a large and complex table. I need to add a value to the first occurrence in that table. Because of a rounding error that isn't going to be fixed anytime soon. I need to take the monthly amount, divide it by 4 weeks and add a penny to the first occurrence of a name. Something like:

NameMonthly AmtWeekly Deduct
Adams, Tyler00
Brown, Jean22.385.61
Brown, Jean7.711.93
Castor, Billy352.2888.08
Castor, Billy22.385.60
Castor, Billy7.711.93
Diplo, Angie672.56168.15

<tbody>
</tbody>

On Adams, Tyler, we didn't add a penny because it is zero.
For Brown, Jean, a penny should be added to the first occurrence (thus 5.61 instead of 5.60) and not the second line for her.
Castor, Billy, has a penny added on the first line and not the other 2.
Diplo, Angie, had a penny added to her only line (as it is the first).

I hope I've explained that well enough for others to understand. Ready, set... GO! :)
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
This works out great. However, today I noticed a change to the pattern that would throw Marziotullio's formula off. Company policy has changed the invoicing and I had the following come up:

NameMonthly AmtWeekly Deduct
Adams, Tyler00
Brown, Jean22.385.61
Brown, Jean7.711.93
Castor, Billy352.2888.08
Castor, Billy22.385.60
Castor, Billy7.711.93
Diplo, Angie672.56168.15
Egles, Zach00
Egles, Zach126.33126.33

<tbody>
</tbody>

The formula works great until Egles, Zach comes into the picture. The company now pays for his first deduction, but not the second, third, etc. How can I amend the formula to account for this?
 
Upvote 0

Forum statistics

Threads
1,215,365
Messages
6,124,512
Members
449,167
Latest member
jrob72684

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top