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=A1amp;TEXT(A2,quot;000quot;)amp;A3
--
HTH
Bob Phillips
(remove nothere from email address if mailing direct)
quot;nickquot; gt; wrote in message
...
gt; Hi,
gt;
gt; In worksheet 1 i have 3 fields:
gt; A1 A2 A3
gt; 1234 1 19980101
gt;
gt; A2 is a 3 character field, some with leading zeros and some without. A3 is
gt; the date but i need to populate it as YYDDD. I need to populate all 3
fields
gt; together in the following format:
gt;
gt; 123400198001
gt; How do i do this? ANy help? Thanks
gt;
Hi Nick,
Posted this earlier, but it hasn't appeared
=IF(LEN(A2)=1,A1amp;quot;00quot;amp;A2amp;TEXT(A3,quot;yyquot;)amp;IF(LEN(DAY( A3))=1,quot;00quot;amp;DAY(A3),quot;0quot;amp;DAY(A3)),IF(LEN(A2)=2,A1amp;quot; 0quot;amp;A2amp;TEXT(A3,quot;yyquot;)amp;IF(LEN(DAY(A3))=1,quot;00quot;amp;DAY(A3) ,quot;0quot;amp;DAY(A3)),IF(LEN(A2)=3,A1amp;A2amp;TEXT(A3,quot;yyquot;)amp;IF( LEN(DAY(A3))=1,quot;00quot;amp;DAY(A3),quot;0quot;amp;DAY(A3)))))
Hope this helps you on your way
Ewan.
quot;nickquot; wrote:
gt; Hi,
gt;
gt; In worksheet 1 i have 3 fields:
gt; A1 A2 A3
gt; 1234 1 19980101
gt;
gt; A2 is a 3 character field, some with leading zeros and some without. A3 is
gt; the date but i need to populate it as YYDDD. I need to populate all 3 fields
gt; together in the following format:
gt;
gt; 123400198001
gt; How do i do this? ANy help? Thanks
gt;
thank you
quot;Bob Phillipsquot; wrote:
gt; =A1amp;TEXT(A2,quot;000quot;)amp;A3
gt;
gt; --
gt; HTH
gt;
gt; Bob Phillips
gt;
gt; (remove nothere from email address if mailing direct)
gt;
gt; quot;nickquot; gt; wrote in message
gt; ...
gt; gt; Hi,
gt; gt;
gt; gt; In worksheet 1 i have 3 fields:
gt; gt; A1 A2 A3
gt; gt; 1234 1 19980101
gt; gt;
gt; gt; A2 is a 3 character field, some with leading zeros and some without. A3 is
gt; gt; the date but i need to populate it as YYDDD. I need to populate all 3
gt; fields
gt; gt; together in the following format:
gt; gt;
gt; gt; 123400198001
gt; gt; How do i do this? ANy help? Thanks
gt; gt;
gt;
gt;
gt;
Thank you very much
quot;ewan7279quot; wrote:
gt; Hi Nick,
gt;
gt; Posted this earlier, but it hasn't appeared
gt;
gt; =IF(LEN(A2)=1,A1amp;quot;00quot;amp;A2amp;TEXT(A3,quot;yyquot;)amp;IF(LEN(DAY( A3))=1,quot;00quot;amp;DAY(A3),quot;0quot;amp;DAY(A3)),IF(LEN(A2)=2,A1amp;quot; 0quot;amp;A2amp;TEXT(A3,quot;yyquot;)amp;IF(LEN(DAY(A3))=1,quot;00quot;amp;DAY(A3) ,quot;0quot;amp;DAY(A3)),IF(LEN(A2)=3,A1amp;A2amp;TEXT(A3,quot;yyquot;)amp;IF( LEN(DAY(A3))=1,quot;00quot;amp;DAY(A3),quot;0quot;amp;DAY(A3)))))
gt;
gt; Hope this helps you on your way
gt;
gt; Ewan.
gt;
gt; quot;nickquot; wrote:
gt;
gt; gt; Hi,
gt; gt;
gt; gt; In worksheet 1 i have 3 fields:
gt; gt; A1 A2 A3
gt; gt; 1234 1 19980101
gt; gt;
gt; gt; A2 is a 3 character field, some with leading zeros and some without. A3 is
gt; gt; the date but i need to populate it as YYDDD. I need to populate all 3 fields
gt; gt; together in the following format:
gt; gt;
gt; gt; 123400198001
gt; gt; How do i do this? ANy help? Thanks
gt; gt;
- Nov 18 Sat 2006 20:10
Help with Formatting
close
全站熱搜
留言列表
發表留言