Date Formula Issues

nickp20

New Member
Joined
Jun 24, 2020
Messages
6
Office Version
  1. 2016
Platform
  1. Windows
Excel version 16

Rows 5 & 6
Sent to consultant column "T" has no formula, its data manual date entry only
Required back column "U" =IF(T5="","",T5+15)
TODAY column "V" is usually hidden =TODAY()
Days Out Column "W" =IF(T5="","",U5-V5) also has conditional formatting changes the color of text green prior to the due date after the due text is red.
Received from Consultants column "X" has no formula, its data manual date entry.
Annotation 2020-06-24.PNG


The goal here is when we populate a date into the "Received from Consultant" column "X" we would like "Days Out" Column to be blank
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Here is a worksheet Change Event
VBA Code:
Option Explicit

Private Sub Worksheet_Change(ByVal Target As Range)
    Dim tRow As Long
    If Target.Column = 24 Then
        tRow = Target.Row
        Range("W" & tRow) = ""
    End If

End Sub

In the VBE, click on the Sheet in the left window. When the right window opens, paste this code. Close and Save. Whenever you update Column X then Column W will become blank.
 
Upvote 0
Formula works great as does the VBE code. Thank you for your help!!!
 
Upvote 0

Forum statistics

Threads
1,214,907
Messages
6,122,181
Members
449,071
Latest member
cdnMech

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