Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
In worksheet 1 i have 3 fields: A1 A2 A3 1234 1 19980101 A2 is a 3 character field, some with leading zeros and some without. A3 is the date but i need to populate it as YYDDD. I need to populate all 3 fields together in the following format: 123400198001 How do i do this? ANy help? Thanks |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=A1&TEXT(A2,"000")&A3
-- HTH Bob Phillips (remove nothere from email address if mailing direct) "nick" wrote in message ... Hi, In worksheet 1 i have 3 fields: A1 A2 A3 1234 1 19980101 A2 is a 3 character field, some with leading zeros and some without. A3 is the date but i need to populate it as YYDDD. I need to populate all 3 fields together in the following format: 123400198001 How do i do this? ANy help? Thanks |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Nick,
Posted this earlier, but it hasn't appeared =IF(LEN(A2)=1,A1&"00"&A2&TEXT(A3,"yy")&IF(LEN(DAY( A3))=1,"00"&DAY(A3),"0"&DAY(A3)),IF(LEN(A2)=2,A1&" 0"&A2&TEXT(A3,"yy")&IF(LEN(DAY(A3))=1,"00"&DAY(A3) ,"0"&DAY(A3)),IF(LEN(A2)=3,A1&A2&TEXT(A3,"yy")&IF( LEN(DAY(A3))=1,"00"&DAY(A3),"0"&DAY(A3))))) Hope this helps you on your way Ewan. "nick" wrote: Hi, In worksheet 1 i have 3 fields: A1 A2 A3 1234 1 19980101 A2 is a 3 character field, some with leading zeros and some without. A3 is the date but i need to populate it as YYDDD. I need to populate all 3 fields together in the following format: 123400198001 How do i do this? ANy help? Thanks |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
thank you
"Bob Phillips" wrote: =A1&TEXT(A2,"000")&A3 -- HTH Bob Phillips (remove nothere from email address if mailing direct) "nick" wrote in message ... Hi, In worksheet 1 i have 3 fields: A1 A2 A3 1234 1 19980101 A2 is a 3 character field, some with leading zeros and some without. A3 is the date but i need to populate it as YYDDD. I need to populate all 3 fields together in the following format: 123400198001 How do i do this? ANy help? Thanks |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thank you very much
"ewan7279" wrote: Hi Nick, Posted this earlier, but it hasn't appeared =IF(LEN(A2)=1,A1&"00"&A2&TEXT(A3,"yy")&IF(LEN(DAY( A3))=1,"00"&DAY(A3),"0"&DAY(A3)),IF(LEN(A2)=2,A1&" 0"&A2&TEXT(A3,"yy")&IF(LEN(DAY(A3))=1,"00"&DAY(A3) ,"0"&DAY(A3)),IF(LEN(A2)=3,A1&A2&TEXT(A3,"yy")&IF( LEN(DAY(A3))=1,"00"&DAY(A3),"0"&DAY(A3))))) Hope this helps you on your way Ewan. "nick" wrote: Hi, In worksheet 1 i have 3 fields: A1 A2 A3 1234 1 19980101 A2 is a 3 character field, some with leading zeros and some without. A3 is the date but i need to populate it as YYDDD. I need to populate all 3 fields together in the following format: 123400198001 How do i do this? ANy help? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Conditional Formatting Error | Excel Worksheet Functions | |||
difficulty with conditional formatting | Excel Discussion (Misc queries) | |||
Formatting dates in the future | Excel Worksheet Functions | |||
Copy conditional formatting across multiple rows? | Excel Discussion (Misc queries) | |||
Conditional formatting not available in Excel | Excel Discussion (Misc queries) |