Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Joseph Zuraski II
 
Posts: n/a
Default CONCATENATE And Date Format

I've always been doing formatting as =CONCATENATE(A4," - ",B4) where value is
'12/20/2006 on A4 and '12/31/2006 on B4 (12/20/2006 - 12/31/2006 printed
format).

Without the ' on the formula it becomes numerical (39071 - 39082). Is there
a way to make it read (12/20/2006 - 12/31/2006) without the ' symbols?

Thanks,

Joseph Zuraski II
  #2   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default CONCATENATE And Date Format

By using a single quote (apostrophe), you are forcing a string rather than a
real date.


If you want to omit the single quote, then use the TEXT() function:

=CONCATENATE(TEXT(A4,"m/d/yyyy")," - ",TEXT(B4,"m/d/yyyy"))
--
Gary's Student


"Joseph Zuraski II" wrote:

I've always been doing formatting as =CONCATENATE(A4," - ",B4) where value is
'12/20/2006 on A4 and '12/31/2006 on B4 (12/20/2006 - 12/31/2006 printed
format).

Without the ' on the formula it becomes numerical (39071 - 39082). Is there
a way to make it read (12/20/2006 - 12/31/2006) without the ' symbols?

Thanks,

Joseph Zuraski II

  #3   Report Post  
Posted to microsoft.public.excel.misc
SteveG
 
Posts: n/a
Default CONCATENATE And Date Format


Joseph,

=CONCATENATE(TEXT(A4,"mm/dd/yyyy")," - ",TEXT(B4,"mm/dd/yyyy"))

Cheers,

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=509429

  #4   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default CONCATENATE And Date Format

=TEXT(A1,"mm/dd/yyyy")&" - "&TEXT(B1,"mm/dd/yyyy")

Vaya con Dios,
Chuck, CABGx3



"Joseph Zuraski II" wrote:

I've always been doing formatting as =CONCATENATE(A4," - ",B4) where value is
'12/20/2006 on A4 and '12/31/2006 on B4 (12/20/2006 - 12/31/2006 printed
format).

Without the ' on the formula it becomes numerical (39071 - 39082). Is there
a way to make it read (12/20/2006 - 12/31/2006) without the ' symbols?

Thanks,

Joseph Zuraski II

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default If Today < Yesterday, but than Tomorrow

Sorry about replying to your email to ask a question, but the system won't
allow me to post a question - it just acts like I didn't press any buttons.
What I am looking for is:
1. have Excel look at the Date in Cell A1,
2. have Excel look at the Date in Cell A2,
3. if today() A1 and today() < A2 then display A2.
I've experimented with various functions and either get €śTrue€ť or something
else.
Can you help?

Thanks


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 860
Default If Today < Yesterday, but than Tomorrow

Hi Trackeous,

Try This in A3
=IF(AND(A1<TODAY(),TODAY()<A2),A2,"")

You didn't say what you wanted if the answer is false
so I put in a blank. Change the "" to whatever you like.

HTH
Martin


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 618
Default If Today < Yesterday, but than Tomorrow

=IF(AND(TODAY()A1,TODAY()<A2),A2,"")
--
David Biddulph

"Trackeous" wrote in message
...
Sorry about replying to your email to ask a question, but the system won't
allow me to post a question - it just acts like I didn't press any
buttons.
What I am looking for is:
1. have Excel look at the Date in Cell A1,
2. have Excel look at the Date in Cell A2,
3. if today() A1 and today() < A2 then display A2.
I've experimented with various functions and either get "True" or
something
else.
Can you help?

Thanks



  #8   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 594
Default If Today < Yesterday, but than Tomorrow

Same stuff, another whey.............

=IF(TODAY()A1,IF(TODAY()<A2,A2,""),"")

Vaya con Dios,
Chuck, CABGx3


"Trackeous" wrote in message
...
Sorry about replying to your email to ask a question, but the system won't
allow me to post a question - it just acts like I didn't press any

buttons.
What I am looking for is:
1. have Excel look at the Date in Cell A1,
2. have Excel look at the Date in Cell A2,
3. if today() A1 and today() < A2 then display A2.
I've experimented with various functions and either get "True" or

something
else.
Can you help?

Thanks



  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default If Today < Yesterday, but than Tomorrow

Just wanted to thank you for your help. Your formula worked. I appreciate it.

"MartinW" wrote:

Hi Trackeous,

Try This in A3
=IF(AND(A1<TODAY(),TODAY()<A2),A2,"")

You didn't say what you wanted if the answer is false
so I put in a blank. Change the "" to whatever you like.

HTH
Martin



  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 860
Default If Today < Yesterday, but than Tomorrow

Your Welcome :-)


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 use the concatenate function to add a date into a sentenc Ken Janowitz Excel Worksheet Functions 6 December 13th 05 10:41 PM
Include date in concatenate statement Ken G. Excel Discussion (Misc queries) 3 October 13th 05 05:12 AM
How do I concatenate two columns when one is in date format? LauraL Excel Discussion (Misc queries) 3 August 29th 05 04:07 PM
day/month/year in incorrect format for date format M&A_Jack Excel Worksheet Functions 2 August 16th 05 08:15 PM
concatenate text and date Tara Keane Excel Discussion (Misc queries) 2 February 11th 05 05:17 PM


All times are GMT +1. The time now is 10:09 PM.

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"