If and date functions help needed please

chriscavell

New Member
Joined
Apr 6, 2011
Messages
6
Hi
I know this has been asked somewhere before (I was google searching earlier but cant find it now) but I have a spreadsheet which logs all the invoices my department receives and their relevant pieces of information.
One column, is the current status (ie who has the invoice to sign off and whether it has been approved or not). I want to enter a formula into the 'date sent to accounts' column so that when the current status column says 'yes' the 'date sent to accounts column' automatically enters the date (obviously I don't want this date to change once entered).

I have tried entering an IF statement including the date but cant get it to work.

Can anyone help?

Thanks
 
If "Yes" is entered manually in Column "K", then this code is all you need!!
Rich (BB code):
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
If Target.Column <> 11 Then Exit Sub    
If UCase(Target) = "YES" Then Cells(Target.Row, 14) = Date 
End Sub

You do not need a formula in Column "N"

lenze
 
Upvote 0

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,224,621
Messages
6,179,946
Members
452,949
Latest member
beartooth91

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