Advice on a formula please

xyzabc198

Board Regular
Joined
Jul 30, 2008
Messages
126
Hi there,

Im pretty new to using formats on databases so I hope you can give me some simple advice, if it gets too tricky though I have a techy I can speak to.

Here's what I'm trying to do

In column AC I have a date column
And in AE I have a comments column

And in each row I have a company name, I enter the date I last called them in AC and what they said in AE.

I want a format that will make todays date appear in column AC every time I enter something into AE for that company...is this doable? any advice would be greatly appreciated!

~Jonathan!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
AC1= IF(AE1<>"",today(),"")

and copy down over column AC. Thanks

Kaps
 
Upvote 0
Try this. Right click the sheet tab, select View Code and paste in

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 31 Then
    Application.EnableEvents = False
    Target.Offset(0, -2).Value = Date
    Application.EnableEvents = True
End If
End Sub

Close the code window using the X.
 
Upvote 0
Try this. Right click the sheet tab, select View Code and paste in

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 31 Then
    Application.EnableEvents = False
    Target.Offset(0, -2).Value = Date
    Application.EnableEvents = True
End If
End Sub

Close the code window using the X.

Thanks for that VoG your a legend, worked perfectly, thumbs up to you!
 
Upvote 0
Thanks for that VoG your a legend, worked perfectly, thumbs up to you!
Sounds like you are satisfied but have you considered what should happen to col AC if:
1. A value is deleted from col AE?
2. Multiple values are deleted at once from col AE?
3. Multiple values are entered into col AE at once (eg by a copy and paste, or by entry via Ctrl+Enter)?
 
Upvote 0
Sounds like you are satisfied but have you considered what should happen to col AC if:
1. A value is deleted from col AE?
2. Multiple values are deleted at once from col AE?
3. Multiple values are entered into col AE at once (eg by a copy and paste, or by entry via Ctrl+Enter)?

1. I wouldn't be deleting anything, it is corporate data that I must be very careful with, no room for error
2. Won't be deleting
3. Every column will have different details, nothing would be C+P'd.
4. I have a copy of the original just incase

;) but thanks for the heads up!
 
Upvote 0

Forum statistics

Threads
1,215,183
Messages
6,123,529
Members
449,105
Latest member
syed902

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