Update VBA Code to Format, Remove Unwanted Dates, and Apply Dynamic Formulas

Justinian

Well-known Member
Joined
Aug 9, 2009
Messages
1,557
Office Version
  1. 365
Platform
  1. Windows
I have attached links to two spreadsheets: "Before" and "After." Here is what I am trying to do to "Before" so it ends up looking like "After."

1) If you look at the code in "Before," you will see I am trying to apply this formula to all items in column A: =RIGHT(A2,LEN(A2)-FIND("-",A2,1))
2) Once this formula is applied to column A, I need to convert all items in column A to numbers
3) Delete the remaining formulas in column G
4) Separate dates as follows: today plus 2 so if today is 8/6/19, I need the spreadsheet to only show 8/6, 8/7, and 8/18, removing all other rows and separating the three dates with a blank, unformatted row. When I run this report tomorrow (8/7/19), I need 8/7, 8/8, and 8/9 to be the only dates on the report.

I know this is a lot of extra steps but I wanted to see if anyone knows any shortcuts to accomplish this.

Before
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]https://app.box.com/s/y9ek52d9dy9tmab2ny2pydo9n87jd6ye

After
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]https://app.box.com/s/menggrkiitjklwlniyhplvck4gbyl3jv[/FONT]<strike>
</strike>
[/FONT]
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,223,956
Messages
6,175,619
Members
452,661
Latest member
Nonhle

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