could someone take pitty on me

pickwa

Board Regular
Joined
Jun 6, 2011
Messages
54
Hi Guys,

i want to put a status box on my spreadsheet for sending out fines so i always know from a glance what stage im at in the proceedings.

What i dont really understand is how to even start the formula.
Each condition needs to over write the previous one if you know what i mean.

If anyone could point me in the rite direction it would be greatly appreciated.

These are the individual formulas(kind of) mite give you an idea what im trying to do anyway.

=IF(J3>0, "processing","")
=IF(K3=YES,"confirmed","Send 1st Letter")
=IF(L3>"","1st letter sent","")
=IF(L3=Today()-40,"send Charge Letter","")

if it is 40 days after the date in L3?

=IF(M3>"","Charge Letter Sent,"")
=IF(M3=Today()-40,"Send Surcharge Leter","")
=IF(N3>0,"Surcharge Letter Sent","")
=IF(N3=Today()-40,"Pass On","")
=IF(O3=>"","Case Closed","")
=IF(R2="yes","Paid","")


Thanks

Pickwa
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Ok....not to sure what a script is to be honest wit you?

It is intended to go in the I Column.
 
Upvote 0
Right click on the sheet name at the bottom and click view code

paste this in the window that opens

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count <> 1 Then Exit Sub
If Target.Column = 10 Then
If Target.Value > 0 Then Target.Offset(0, -1).Value = "processing"
End If
If Target.Column = 11 Then
If Target.Value = "YES" Then Target.Offset(0, -2).Value = "confirmed, Send 1st Letter"
End If
If Target.Column = 12 Then
If Target.Value <> "" Then Target.Offset(0, -3).Value = "1st letter sent"
If Target.Value > Date - 40 Then Target.Offset(0, -3).Value = "send Charge Letter"
End If
If Target.Column = 13 Then
If Target.Value <> "" Then Target.Offset(0, -4).Value = "send Charge Letter"
If Target.Value > Date - 40 Then Target.Offset(0, -4).Value = "Send Surcharge Leter"
End If
If Target.Column = 14 Then
If Target.Value > "0" Then Target.Offset(0, -5).Value = "Surcharge Letter Sent"
If Target.Value > Date - 40 Then Target.Offset(0, -5).Value = "Pass On"
End If
If Target.Column = 15 Then
If Target.Value >= "0" Then Target.Offset(0, -6).Value = "Case Closed"
End If
If Target.Column = 18 Then
If Target.Value = "YES" Then Target.Offset(0, -9).Value = "Paid"
End If
End Sub
press ALT + Q
 
Last edited:
Upvote 0
Thanks it almost works just as i want it to.

Im going to attempt to work the bit that doesnt work out for myself if i can.........(now you have done the hard bit!)

Really appreciate the help again!

cheers
 
Upvote 0
Hi,

Really sorry to bother you again.

I understand that in excel when you put date +40 it will give you the date 40 days after today. Is that different in when talking about scripts?

If Target.Value > Date - 40 Then Target.Offset(0, -5).Value = "Pass On"

This line only actions when i put a date 40 years in the future and i need it to be 40 days in the future or 1 month would do if that makes it easier. How would i go about fixing this?

Cheers

Pickwa
 
Upvote 0

Forum statistics

Threads
1,224,584
Messages
6,179,693
Members
452,938
Latest member
babeneker

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