Date Format

P

Perkykid

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.
 
M

Mike H

Try this

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

Mike
 
M

MyVeryOwnSelf

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")
 
F

FSt1

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top