Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
systemx
 
Posts: n/a
Default Reference date as text


Hi all,

Firstly - my apologies for the now triple post. I had problems posting
(zero byte reply) so while the initial two show as threads - there is
not content in the message. I would appreciate it if a mod could clear
up my mess :)

Hoping someone can help with what may be a trivial problem - however it
is causing me enough pain and suffering to post here.

In A1 I have a date, format ddmmyy. In B1 I have an ID number...any
four digit number.

In A3 I want to join the two together....so I use -

=A1&"-"&B1

Then the date is referred to as a serial number.....so I get in A3

32543-1234

instead of 230105-1234.

I have tried to get around this in A2 with -

=DAY(A1)+MONTH(A1)+YEAR(A1)

This works when I reference it with my formula in A3 - but the date
format cannot be formatted. I tried to split the formula in A2 over
three cells, and format them individually - but only the DAY component
could be successfully formatted to dd.

So if anyone could offer any advice as to how I may be able to
reference a date as text (ie what you see, not the serial number) - I
would be really greatful!

Thanks

rob :)


--
systemx
------------------------------------------------------------------------
systemx's Profile: http://www.excelforum.com/member.php...o&userid=29254
View this thread: http://www.excelforum.com/showthread...hreadid=504705

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
daddylonglegs
 
Posts: n/a
Default Reference date as text


Try this formula

=TEXT(A1,"ddmmyy")&"-"&B1


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=504705

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Govind
 
Posts: n/a
Default Reference date as text

Hi,

Try

=TEXT(A1,"DD/MM/YY")&"-"&B1

Govind.

systemx wrote:
Hi all,

Firstly - my apologies for the now triple post. I had problems posting
(zero byte reply) so while the initial two show as threads - there is
not content in the message. I would appreciate it if a mod could clear
up my mess :)

Hoping someone can help with what may be a trivial problem - however it
is causing me enough pain and suffering to post here.

In A1 I have a date, format ddmmyy. In B1 I have an ID number...any
four digit number.

In A3 I want to join the two together....so I use -

=A1&"-"&B1

Then the date is referred to as a serial number.....so I get in A3

32543-1234

instead of 230105-1234.

I have tried to get around this in A2 with -

=DAY(A1)+MONTH(A1)+YEAR(A1)

This works when I reference it with my formula in A3 - but the date
format cannot be formatted. I tried to split the formula in A2 over
three cells, and format them individually - but only the DAY component
could be successfully formatted to dd.

So if anyone could offer any advice as to how I may be able to
reference a date as text (ie what you see, not the serial number) - I
would be really greatful!

Thanks

rob :)


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
systemx
 
Posts: n/a
Default Reference date as text


Thank you both.

Worked like a charm :)


--
systemx
------------------------------------------------------------------------
systemx's Profile: http://www.excelforum.com/member.php...o&userid=29254
View this thread: http://www.excelforum.com/showthread...hreadid=504705

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I convert text string into a cell reference Dave Davis Excel Discussion (Misc queries) 4 May 18th 23 11:48 AM
date in a text cell Dajana Excel Discussion (Misc queries) 2 December 6th 05 11:03 PM
Combining Text and Date for VLOOKUP biggymismyname Excel Worksheet Functions 2 December 5th 05 04:01 PM
How do I convert a text string into a date? JJMCDD02 Excel Worksheet Functions 4 November 25th 05 12:35 PM
Date to Text tobriant Excel Worksheet Functions 1 August 5th 05 05:37 PM


All times are GMT +1. The time now is 11:33 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"