ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   dates converted (https://www.excelbanter.com/excel-discussion-misc-queries/446106-dates-converted.html)

bill k

dates converted
 
I need to find a formula to change a production date into a 2 letter
cypher. The months are for instance aug = A, sept= B, oct = C, etc
the years are 2012 = W, 2013=X, 2014=Y, 2015=Z, 2016=A
So a complte date is described as JW18 for 18 may 2012

Claus Busch

dates converted
 
Hi Bill,

Am Fri, 18 May 2012 18:12:04 -0700 (PDT) schrieb bill k:

I need to find a formula to change a production date into a 2 letter
cypher. The months are for instance aug = A, sept= B, oct = C, etc
the years are 2012 = W, 2013=X, 2014=Y, 2015=Z, 2016=A
So a complte date is described as JW18 for 18 may 2012


write for example in H1 8 (for aug) and in I1 A, H2 = 9, I2 =B and so on
for each month. Then in K1 2012 and in L1 W, K2=2013, L2 = X

Your date (18 may 2012) is in A1. Then try:
=VLOOKUP(MONTH(A1),$H$1:$I$12,2,0)&VLOOKUP(YEAR(A1 ),$K$1:$L$5,2,0)&DAY(A1)


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2

Ron Rosenfeld[_2_]

dates converted
 
On Fri, 18 May 2012 18:12:04 -0700 (PDT), bill k wrote:

I need to find a formula to change a production date into a 2 letter
cypher. The months are for instance aug = A, sept= B, oct = C, etc
the years are 2012 = W, 2013=X, 2014=Y, 2015=Z, 2016=A
So a complte date is described as JW18 for 18 may 2012


If the day of the month will always be a two digit number, then try:

=CHAR(MOD(MONTH(A1)-8,12)+65) &
CHAR(MOD(YEAR(A1)-2016,26)+65) &
TEXT(DAY(A1),"00")

If the day of the month can be a single digit, then try:

=CHAR(MOD(MONTH(A1)-8,12)+65) &
CHAR(MOD(YEAR(A1)-2016,26)+65) &
DAY(A1)



All times are GMT +1. The time now is 08:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com