Looking for a formula to include a date formatted specifically

blandreth

Board Regular
Joined
Jan 18, 2018
Messages
56
Office Version
  1. 365
Hi,

I'm looking for a formula that will provide the following result in a single cell every time I open the file:

GMR-07-03-2019

Date needs to be in this format (MM-DD-YYYY) as this result will also be saved as the file title.

I appreciate any feedback.

Thanks,
Brian
 

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
How about
="GMR-"&TEXT(TODAY(),"MM-DD-YYYY")
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0
Now that we got the easy one out of the way. I have what I think to be a more difficult question. I need some macro help. Please see my explanation below of how I want the macro to work:

Run macro in working file --> copies a row of data --> opens another file from specified location --> copies the data to the next open row for designated amount of columns --> saves the file --> closes the file and returns to the working file

The data would be pasted in a row for so many columns and the remaining columns in the same row would have formulas that will calculate data pasted. Not sure if this makes a difference, but wanted to add the information just in case.

Any feedback again would be greatly appreciated.

Thanks,
Brian
 
Upvote 0
As this is a completely different question, you will need to start a new thread.
Thanks
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,250
Members
452,623
Latest member
Techenthusiast

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