CUT AND PASTE (FORMULA WITH CONCATENATE)?

rhwebb

New Member
Joined
Jan 10, 2022
Messages
18
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
1642485052082.png


Need some help from the VBA gurus please. I'm working on a project (simplified here) in which I need to remove the text in cell F2:J2 (merged). The data within that cell will then be placed into cell A3:J3 (merged). However I do not need the entire text/date string-- only "Report Date: dd - mmm - yyyy". I'm looking either for a VBA solution to cut and paste which will isolate that text string (variable date) or a formula to CONCATENATE "Report Date:" with Today(). When I tried to write an ActiveCell.FormulaR1C1= i received an error for expected end. Would really appreciate any help.

Thanks
 
Okay, using our original problem set. If F2 was “Source Database: Report Date: 17 Jan 2022 11:55 p.m.“ but I only want to keep “ Report Date:17 Jan 2022”. That’s feasible? Really cool. I need to do some studying! Thank you for sharing your knowledge!
 
Upvote 0

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
If F2 is always that format then something like this should do it.
VBA Code:
Range("A3").Value = Trim(Mid(Range("F2").Value, 18, 24))
 
Upvote 0
If F2 is always that format then something like this should do it.
VBA Code:
Range("A3").Value = Trim(Mid(Range("F2").Value, 18, 24))
Yes! That works perfectly! Thank you so much for the assistance. Showed the final product to the boss and he's happy and we save tons of time now!
 
Upvote 0
Good news! Thanks for the follow-up.
You are welcome. :)
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,583
Members
449,089
Latest member
Motoracer88

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