Find all cells within a column that begins with a specific string expression then replacing the date value in the cell in string format

Halpplox

New Member
Joined
May 30, 2024
Messages
1
Office Version
  1. Prefer Not To Say
Platform
  1. Windows
I have no VBA coding experience except for recording macros hence I am stuck with this problem.

I have a spreadsheet with column J that contains string data type in all its cells.

Some of the cells contain string expression that begin exactly like this "The committee reviewed the case in Apr 2024*" and ends in a variety of ways.

What I need is for the date in such cells to be updated based on the today's month and year when I run the macro while everything else in the cell remains the same.

So If I ran the macro in May, then the string will be updated to "The committee reviewed the case in May 2024*" where * is the wildcard of whatever string the cell ends in.

Thanks in advance!
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Some of the cells contain string expression that begin exactly like this "The committee reviewed the case in Apr 2024*"
Do you mean it always "Apr 2024" or it could be any month or year, such as "Jan 2024" or "Feb 2020"?
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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