#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default Date formating

Hi All

Excel is not pulling the date in proper format while applying the date cell
in a formula.
ER:
ColumnA ColumnB ColumnC
Amount Date Settled
250 4/9/2008 Amount 250 Settled on 39547

Column C formula is =CONCATENATE("Amount"," ",A2," ","Settled on ",B2)

I need date 04/09/08 in C column not 39547. Formula should give me Amount
250 settled on 04/09/08.

Is there any function to resolve this?

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Date formating

You can do it like this:

="Amount "&A2&" Settled on "&TEXT(B2,"mm/dd/yyyy")

You don't need to use CONCATENATE - the & operator does the same.

Hope this helps.

Pete

On Apr 10, 10:24*am, singh wrote:
Hi All

Excel is not pulling the date in proper format while applying the date cell
in a formula.
ER:
*ColumnA * * * ColumnB * * *ColumnC
*Amount * * * * *Date * * * * * * Settled
* 250 * * * * * * *4/9/2008 * * *Amount 250 Settled on 39547

Column C formula is =CONCATENATE("Amount"," ",A2," ","Settled on ",B2)

* I need date 04/09/08 in C column not 39547. Formula should give me Amount
250 settled on 04/09/08.

Is there any function to resolve this?

Thanks in advance.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default Date formating

Thanks a bunch Pete

I never thought about this. It is the simple way. I was trying doing with
macro.
Code
Columns("A:A").Select
Selection.TextToColumns Destination:=Range("A1"),
DataType:=xlFixedWidth, _
FieldInfo:=Array(0, 2), TrailingMinusNumbers:=True
Range("C2").Select
ActiveCell.FormulaR1C1 = "=CONCATENATE("Amount"," ",A2," ","Settled on
",B2)"

This is working. But yours is really really easy.

Simplicity is best.. Thanks to you once again..


"Pete_UK" wrote:

You can do it like this:

="Amount "&A2&" Settled on "&TEXT(B2,"mm/dd/yyyy")

You don't need to use CONCATENATE - the & operator does the same.

Hope this helps.

Pete

On Apr 10, 10:24 am, singh wrote:
Hi All

Excel is not pulling the date in proper format while applying the date cell
in a formula.
ER:
ColumnA ColumnB ColumnC
Amount Date Settled
250 4/9/2008 Amount 250 Settled on 39547

Column C formula is =CONCATENATE("Amount"," ",A2," ","Settled on ",B2)

I need date 04/09/08 in C column not 39547. Formula should give me Amount
250 settled on 04/09/08.

Is there any function to resolve this?

Thanks in advance.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Date formating

Glad to help - thanks for feeding back.

Pete

On Apr 10, 11:35*am, singh wrote:
Thanks a bunch Pete

I never thought about this. It is the simple way. I was trying doing with
macro.
Code
Columns("A:A").Select
* * Selection.TextToColumns Destination:=Range("A1"),
DataType:=xlFixedWidth, _
* * * * FieldInfo:=Array(0, 2), TrailingMinusNumbers:=True
Range("C2").Select
* * ActiveCell.FormulaR1C1 = "=CONCATENATE("Amount"," ",A2," ","Settled on
",B2)"

This is working. But yours is really really easy.

Simplicity is best.. *Thanks to you once again..



"Pete_UK" wrote:
You can do it like this:


="Amount "&A2&" Settled on "&TEXT(B2,"mm/dd/yyyy")


You don't need to use CONCATENATE - the & operator does the same.


Hope this helps.


Pete


On Apr 10, 10:24 am, singh wrote:
Hi All


Excel is not pulling the date in proper format while applying the date cell
in a formula.
ER:
*ColumnA * * * ColumnB * * *ColumnC
*Amount * * * * *Date * * * * * * Settled
* 250 * * * * * * *4/9/2008 * * *Amount 250 Settled on 39547


Column C formula is =CONCATENATE("Amount"," ",A2," ","Settled on ",B2)


* I need date 04/09/08 in C column not 39547. Formula should give me Amount
250 settled on 04/09/08.


Is there any function to resolve this?


Thanks in advance.- Hide quoted text -


- Show quoted text -


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
Date Formating orquidea Excel Discussion (Misc queries) 2 October 24th 07 03:29 AM
Date Formating Mel Excel Worksheet Functions 5 February 22nd 07 04:13 PM
Date formating Hawksby Excel Discussion (Misc queries) 2 December 14th 06 06:33 PM
Date formating chad Excel Worksheet Functions 3 October 21st 06 03:31 PM
formating a date field Stephen Excel Discussion (Misc queries) 3 January 25th 06 08:33 PM


All times are GMT +1. The time now is 04:02 PM.

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

About Us

"It's about Microsoft Excel"