Date and Time Stamp

gymwrecker

Active Member
Joined
Apr 24, 2002
Messages
396
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Is it possible to add a formula or instruction to a standard text in excel so when I copy and paste it will automatically add the date and time stamp?

This is a sample of a standard text I use since I approve 100's of personnel actions a day:

"Approved by Mr. John Doe on 05 May 23, 12:12 PM"

Can the underline date and time appear automatically when I copy in any particular cell?
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Upvote 1
Here is a stab at it:
This has data validation to ensure data entered.


mr excel questions 34.xlsm
ABCDE
1
2
3Date:2023-05-05
4Status:Approved
5Approved BY:gymwrecker
6
7Approved by gymwrecker on 05 May, 2023
gymwrecker
Cell Formulas
RangeFormula
B7B7=B4 & " by " & B5 & " on " & TEXT(B3,"dd mmm, yyyy")
Cells with Data Validation
CellAllowCriteria
B3Date=TODAY()
B4Custom=AND(LEN(B4)>0,B4="Approved")
B5Custom=AND(B3=TODAY(),B4="Approved")
 
Upvote 0
here is a better version:

mr excel questions 34.xlsm
ABCD
1
2
3Date:2023-05-05
4Status:Approved
5Approved BY:gymwrecker
6
7Approved by gymwrecker on 05 May, 2023
gymwrecker
Cell Formulas
RangeFormula
B7B7=IF(SUM(--(B3:B5<>""))=3,B4&" by "&B5&" on "&TEXT(B3,"dd mmm, yyyy"),"")
Cells with Data Validation
CellAllowCriteria
B3Date=TODAY()
B4Custom=AND(LEN(B4)>0,B4="Approved")
B5Custom=AND(B3=TODAY(),B4="Approved")
 
Upvote 1
DRSteele, it worked, the only problem is that it returns 12:00 AM every single time.... thoughts?
 
Last edited:
Upvote 0
DRSteele, I got it to work! Thank you! I'm using the following formula:

="Approved by "&Z2&" on "&TEXT(Z15,"mm/dd/yyyy, H:mm am/pm")

Where Z2 has my name, and Z15 =now()
 
Upvote 0
N.B. Your Regional Settings and requirements may or may not require alternative formatting.
Your first post stated "05 May 23, 12:12 PM"

Try the following on your system

Time 2023.xlsm
ZAA
1505-05-23 15:1605 May 23, 3:16 PM
1602-05-23 09:0702 May 23, 9:07 AM
17
1g
Cell Formulas
RangeFormula
Z15Z15=NOW()
AA15:AA16AA15=TEXT(Z15,"dd mmmm yy, h:mm Am/PM")
 
Upvote 0
I'm still using ="Approved by "&Z2&" on "&TEXT(Z15,"mm/dd/yyyy, H:mm am/pm") where Z2 has my name and Z15 "=NOW()"

"Approved by John Doe on 05/08/23, 8:17 PM"

This works for me; I just need for the "time stamp" to reflect the time group when last updated and not the "actual" time that changes when page is refreshed?
 
Upvote 0
I'm still using ="Approved by "&Z2&" on "&TEXT(Z15,"mm/dd/yyyy, H:mm am/pm") where Z2 has my name and Z15 "=NOW()"

"Approved by John Doe on 05/08/23, 8:17 PM"

This works for me; I just need for the "time stamp" to reflect the time group when last updated and not the "actual" time that changes when page is refreshed?
not sure this is what you need completely. But, post #4 requires the entry of the time the person types in their name. There is data validation built around the entry that I think does a pretty good job of being sure the data is collected all at once.

It does NOT use the TODAY() function, but requires the user to type in (by keyboard shortcut or manual) the date of the current day which is compared to in the data validation.
 
Upvote 0
awoohaw, how can I add the time stamp to it? The time of the update and not the actual time?
 
Upvote 0

Forum statistics

Threads
1,223,708
Messages
6,174,006
Members
452,542
Latest member
Bricklin

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