Need help erasing a cell after a calculation has been applied

joeyburger

New Member
Joined
Sep 2, 2009
Messages
3
i have 2 columns Last Violation, and Total Points.... Total points is their total disciplinary points. Every 90 days from their last violation the total points needs to be -2 from the original # and the last violation needs to be erased. I don't know how to get this to display in the same cell and to have the last violation date be erased after the points have issued.

Any help is greatly appreciated
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
<table style="border-collapse: collapse; width: 189pt;" width="252" border="0" cellpadding="0" cellspacing="0"><col style="width: 122pt;" width="163"> <col style="width: 67pt;" width="89"> <tbody><tr style="height: 15.75pt;" height="21"> <td class="xl64" style="height: 15.75pt; width: 122pt;" width="163" height="21">Last Violation Date</td> <td class="xl65" style="width: 67pt;" width="89">Total Points</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl67" style="border: 0.5pt solid windowtext; background: rgb(141, 180, 227) none repeat scroll 0% 0%; height: 15pt; font-size: 10pt; color: windowtext; font-weight: 400; text-decoration: none; font-family: Arial; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" height="20">3/10/2009</td> <td class="xl66" style="border: 0.5pt solid windowtext; background: rgb(255, 96, 0) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" align="right">4
</td> </tr> </tbody></table>
 
Upvote 0
Something like this might be a starting point:
Excel Workbook
ABCD
1Last Violation DateLast Outstanding Violation DateGross PointsNet Points
23/10/20093/10/200964
33/10/200860
Sheet1
Excel 2003
Cell Formulas
RangeFormula
B2=IF(D2>0,A2,"")
D2=MAX(C2-INT((TODAY()-A2)/90)*2,0)


Then say they made a 4-point violation 120 days ago (so their gross is 4 and net is 2). Then today they make another 4-point violation. It seems you might have to copy the *value* of "net points" over to "gross points" - so set gross points to 6 and reset the "last violation date" to today.
 
Upvote 0
Maybe more like, this:
Excel Workbook
GHIJ
1Violation DatePoints for ViolationViolation Date to DisplayRunning Point Total
23/10/200842
37/10/200822
412/10/2008412/10/20082
Sheet1
Excel 2003
Cell Formulas
RangeFormula
I2=IF(OR(J2=0,G3>0),"",G2)
I3=IF(OR(J3=0,G4>0),"",G3)
I4=IF(OR(J4=0,G5>0),"",G4)
J2=MAX(H2-INT((IF(ISBLANK(G3),TODAY(),G3)-G2)/90)*2,0)
J3=MAX(J2+H3-INT((IF(ISBLANK(G4),TODAY(),G4)-G3)/90)*2,0)
J4=MAX(J3+H4-INT((IF(ISBLANK(G5),TODAY(),G5)-G4)/90)*2,0)


That way you have a record to refer to more than just a running total - and you can just enter each violation when it happens. Then just refer to the bottom line for the current status. You could also set it up to display the bottom line in a given place. So that if you have a chart like this for each of a number of people, you could get a summary page to show all of their names and only the bottom row for each person.
 
Upvote 0

Forum statistics

Threads
1,214,912
Messages
6,122,200
Members
449,072
Latest member
DW Draft

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