Custom date format

mhtan

New Member
Joined
Nov 1, 2020
Messages
3
Office Version
  1. 2013
Platform
  1. Windows
I would like to custom format a cell with yyyymm_xxx. Total allow is 10 digit including the space (cannot more or less). yyyy is year ,mm is month, then with a space (must) follow by 3 digit. Example 123,873,097,027
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Your example is not clear.
My example shows today's date custom formatted with yyyymm" XXX"

T202011a.xlsm
A
1
2202011 XXX
3
1b
Cell Formulas
RangeFormula
A2A2=TODAY()
 
Upvote 0
Cross posted Date format customization

While we do allow Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules). This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered elsewhere.
 
Upvote 0
Thanks.

I understand how to make the formula yyyymm, but to add in the sptring ,I will need to have a space follow by 3 numbers(only). In fact, it is a batch number standard format set of a manufacture product. It will be vapture in a system for QR code too.

This is use for a data base for my staffs to enter for the purpose of label printing. We have many issue where the format key in by my staffs has errors result the system could not read.
 
Upvote 0

mhtan

Another guess since you have not provided information so that we can answer your question.

T202011a.xlsm
ABC
1DateCode
2Nov 1, 2020123202011 123
3
1b
Cell Formulas
RangeFormula
A2A2=TODAY()
C2C2=TEXT(A2,"yyymm")&" "&B2
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,839
Members
449,051
Latest member
excelquestion515

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