close

OK, guys, I've read a plethora of posts about DATE, but can't find one that
suits my situation. It's probably out there somewhere,... please help.

I have a cell D2 it's formated as a date 03/01/04 field
I have another numeric field in K5 (just numbers e.g. 3428)

I want cell J2 to be 20040301-3428.

So, do I need to convert D2 to a data yyyymmdd? then convert to text? then
add the hyphen? then add the number?

It's probably simple, but I've spent too much time on this. I keep getting
the serial date or whatever that 38,889 number is.
=TEXT(D2,quot;yyyymmddquot;)amp;quot;-quot;amp;TEXT(K5,quot;#quot;)

--
Kind regards,

Niek Otten

quot;DTTODGGquot; gt; wrote in message
...
gt; OK, guys, I've read a plethora of posts about DATE, but can't find one
gt; that
gt; suits my situation. It's probably out there somewhere,... please help.
gt;
gt; I have a cell D2 it's formated as a date 03/01/04 field
gt; I have another numeric field in K5 (just numbers e.g. 3428)
gt;
gt; I want cell J2 to be 20040301-3428.
gt;
gt; So, do I need to convert D2 to a data yyyymmdd? then convert to text? then
gt; add the hyphen? then add the number?
gt;
gt; It's probably simple, but I've spent too much time on this. I keep getting
gt; the serial date or whatever that 38,889 number is.
gt;
gt;
=TEXT(D2,quot;yyyymmddquot;)amp;quot;-quot;amp;K5. If you need to force the suffix to a certain
number of digits, you could use amp;text(k5,quot;0000quot;) instead of just amp;K5.

quot;DTTODGGquot; wrote:

gt; OK, guys, I've read a plethora of posts about DATE, but can't find one that
gt; suits my situation. It's probably out there somewhere,... please help.
gt;
gt; I have a cell D2 it's formated as a date 03/01/04 field
gt; I have another numeric field in K5 (just numbers e.g. 3428)
gt;
gt; I want cell J2 to be 20040301-3428.
gt;
gt; So, do I need to convert D2 to a data yyyymmdd? then convert to text? then
gt; add the hyphen? then add the number?
gt;
gt; It's probably simple, but I've spent too much time on this. I keep getting
gt; the serial date or whatever that 38,889 number is.
gt;
gt;

I have no idea what you're doing....but, I think this will do it:

=TEXT(D2,quot;yyyymmddquot;)amp;quot;-quot;amp;K5

Does that help?

***********
Regards,
Ronquot;DTTODGGquot; wrote:

gt; OK, guys, I've read a plethora of posts about DATE, but can't find one that
gt; suits my situation. It's probably out there somewhere,... please help.
gt;
gt; I have a cell D2 it's formated as a date 03/01/04 field
gt; I have another numeric field in K5 (just numbers e.g. 3428)
gt;
gt; I want cell J2 to be 20040301-3428.
gt;
gt; So, do I need to convert D2 to a data yyyymmdd? then convert to text? then
gt; add the hyphen? then add the number?
gt;
gt; It's probably simple, but I've spent too much time on this. I keep getting
gt; the serial date or whatever that 38,889 number is.
gt;
gt;

Or, if you always want to copy K2, no matter if it has decimals,

=TEXT(D2,quot;yyyymmddquot;)amp;quot;-quot;amp;K5

--
Kind regards,

Niek Otten

quot;Niek Ottenquot; gt; wrote in message
...
gt; =TEXT(D2,quot;yyyymmddquot;)amp;quot;-quot;amp;TEXT(K5,quot;#quot;)
gt;
gt; --
gt; Kind regards,
gt;
gt; Niek Otten
gt;
gt; quot;DTTODGGquot; gt; wrote in message
gt; ...
gt;gt; OK, guys, I've read a plethora of posts about DATE, but can't find one
gt;gt; that
gt;gt; suits my situation. It's probably out there somewhere,... please help.
gt;gt;
gt;gt; I have a cell D2 it's formated as a date 03/01/04 field
gt;gt; I have another numeric field in K5 (just numbers e.g. 3428)
gt;gt;
gt;gt; I want cell J2 to be 20040301-3428.
gt;gt;
gt;gt; So, do I need to convert D2 to a data yyyymmdd? then convert to text?
gt;gt; then
gt;gt; add the hyphen? then add the number?
gt;gt;
gt;gt; It's probably simple, but I've spent too much time on this. I keep
gt;gt; getting
gt;gt; the serial date or whatever that 38,889 number is.
gt;gt;
gt;gt;
gt;
gt;
Thank you guys SOoooo much - you wouldn't want to see the combinations I've
tried. :-)

quot;DTTODGGquot; wrote:

gt; OK, guys, I've read a plethora of posts about DATE, but can't find one that
gt; suits my situation. It's probably out there somewhere,... please help.
gt;
gt; I have a cell D2 it's formated as a date 03/01/04 field
gt; I have another numeric field in K5 (just numbers e.g. 3428)
gt;
gt; I want cell J2 to be 20040301-3428.
gt;
gt; So, do I need to convert D2 to a data yyyymmdd? then convert to text? then
gt; add the hyphen? then add the number?
gt;
gt; It's probably simple, but I've spent too much time on this. I keep getting
gt; the serial date or whatever that 38,889 number is.
gt;
gt;

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()