#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Date Format

I have this formula in a cell =IF(K2="","","Check Number"&" "&J2&" "&"in the
amount of "&I2&" was mailed on "&(K2)), and on cell K2 i have the date format
as mm/dd/yy, but the result returned this "Check Number 12345 in the amount
of 258.93 was mailed on 39797." How can I change the 39797 to show 12/15/08?
Thanks.


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Date Format

Try this

=IF(K2="","","Check Number"&" "&J2&" "&"in the amount of "&I2&" was mailed
on "&TEXT(K2,"mm/dd/yy"))

Mike

"Perkykid" wrote:

I have this formula in a cell =IF(K2="","","Check Number"&" "&J2&" "&"in the
amount of "&I2&" was mailed on "&(K2)), and on cell K2 i have the date format
as mm/dd/yy, but the result returned this "Check Number 12345 in the amount
of 258.93 was mailed on 39797." How can I change the 39797 to show 12/15/08?
Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 143
Default Date Format

I have this formula in a cell =IF(K2="","","Check Number"&" "&J2&"
"&"in the amount of "&I2&" was mailed on "&(K2)), and on cell K2 i
have the date format as mm/dd/yy, but the result returned this "Check
Number 12345 in the amount of 258.93 was mailed on 39797." How can I
change the 39797 to show 12/15/08?


Instead of just K2, include this as the last part of the formula:
TEXT(K2,"mm/dd/yy")
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Date Format

it worked. Thanks a lot.

"Mike H" wrote:

Try this

=IF(K2="","","Check Number"&" "&J2&" "&"in the amount of "&I2&" was mailed
on "&TEXT(K2,"mm/dd/yy"))

Mike

"Perkykid" wrote:

I have this formula in a cell =IF(K2="","","Check Number"&" "&J2&" "&"in the
amount of "&I2&" was mailed on "&(K2)), and on cell K2 i have the date format
as mm/dd/yy, but the result returned this "Check Number 12345 in the amount
of 258.93 was mailed on 39797." How can I change the 39797 to show 12/15/08?
Thanks.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Date Format

I thought it might, glad I could help and thanks for the feedback

"Perkykid" wrote:

it worked. Thanks a lot.

"Mike H" wrote:

Try this

=IF(K2="","","Check Number"&" "&J2&" "&"in the amount of "&I2&" was mailed
on "&TEXT(K2,"mm/dd/yy"))

Mike

"Perkykid" wrote:

I have this formula in a cell =IF(K2="","","Check Number"&" "&J2&" "&"in the
amount of "&I2&" was mailed on "&(K2)), and on cell K2 i have the date format
as mm/dd/yy, but the result returned this "Check Number 12345 in the amount
of 258.93 was mailed on 39797." How can I change the 39797 to show 12/15/08?
Thanks.




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Date Format

hi
a date format technically is a number format and your cell that contains
the formula
=IF(K2="","","Check Number"&" "&J2&" "&"in the amount of "&I2&" was mailed
on "&(K2)) retuns text. you cann't apply a number format to text.
solution. incorperate the format in the formula.....
=IF(K2="","","Check Number"&" "&J2&" "&"in the amount of "&I2&" was mailed
on "&Text(K2, "mm/dd/yy"))

note that portion of the formula that refers to k2 not is....
text(k2, "mm/d/yy")

regards
FSt1

"Perkykid" wrote:

I have this formula in a cell =IF(K2="","","Check Number"&" "&J2&" "&"in the
amount of "&I2&" was mailed on "&(K2)), and on cell K2 i have the date format
as mm/dd/yy, but the result returned this "Check Number 12345 in the amount
of 258.93 was mailed on 39797." How can I change the 39797 to show 12/15/08?
Thanks.


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
convert serial date format to normal date format Flagworld Excel Discussion (Misc queries) 3 September 23rd 08 01:32 PM
Convert date from text format to date format Anita Excel Discussion (Misc queries) 3 June 4th 07 11:57 AM
Convert date + time text format to date format Paul Ho Excel Worksheet Functions 2 May 22nd 07 05:47 PM
Can I change a date with no format (20051111) to date format? Rose New Users to Excel 2 November 11th 05 09:03 PM
Excel 2000 date format cannot be set to Australian date format Brian Jones Excel Discussion (Misc queries) 1 March 30th 05 06:03 AM


All times are GMT +1. The time now is 09:24 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"