xl down Question

jamesmev

Board Regular
Joined
Apr 9, 2015
Messages
233
Office Version
  1. 365
Platform
  1. Windows
I have a data set where the rows will vary based on that information pulled.
However, I am needing make an adjustment to one of the Columns based on the date.
I have the Formula as "=IFS(RC[-19]<=TODAY(),TODAY()+2,RC[-19]>TODAY(),RC[-19])"

How Do I apply that formula to that Column Down?

Example:
Anything on "I" if the date is either earlier than 2 days from today adjust the date to 2 days from today.
If It is after 2 days from today keep the date on that column.


I feel like I am making harder than it is which is causing a lot of issues.

Please any help would be appreciated.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Which column are you putting that formula in & what is the 1st row?
 
Upvote 0
Which column are you putting that formula in & what is the 1st row?
The goal would be for it to overwrite what is in I starting with I2. If it can not just automatically overwrite the data in I it would then be moved to AB2 XlDown copied from AB2 back to I2 XlDown
 
Upvote 0
Ok, how about
VBA Code:
Sub jamesmev()
   With Range("I2", Range("I" & Rows.count).End(xlUp))
      .Value = Evaluate(Replace("if(@<=Today(),today()+2,@)", "@", .Address))
   End With
End Sub
 
Upvote 0
With Range("I2", Range("I" & Rows.count).End(xlUp)) .Value = Evaluate(Replace("if(@<=Today(),today()+2,@)", "@", .Address)) End With
It seems to work - However, it only works if/when I double click into the cell then click out.
I have Calculations as automatic.
 
Upvote 0
I don't understand what you mean. Double-clicking a cell does not run that macro.
 
Upvote 0
That suggests that your dates are not real dates, but text.
 
Upvote 0
Solution
Glad you sorted it & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,036
Messages
6,122,794
Members
449,095
Latest member
m_smith_solihull

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