ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   script for date and currency formating (https://www.excelbanter.com/excel-discussion-misc-queries/103213-script-date-currency-formating.html)

BRustigian

script for date and currency formating
 

Hello all, could you help me with the script for date and currency
formating? I have a workbook where I am sourcing data and including
data in a sentence. It looks like this, ="Payment due"&" "&H15&"
"&I15&"". Cell H15 is a date and I15 is a dollar amount. Both these
numbers display as numbers with no formating i.e. August 3, 2006 and
$2,432.12. Is there a script that will format this? Thanks


--
BRustigian
------------------------------------------------------------------------
BRustigian's Profile: http://www.excelforum.com/member.php...fo&userid=4345
View this thread: http://www.excelforum.com/showthread...hreadid=568452


Toppers

script for date and currency formating
 
try:

="Payment due " &TEXT(H15,"mmmm, d yyyy") & " " & TEXT(I15,"$#,##0.00")

HTH

"BRustigian" wrote:


Hello all, could you help me with the script for date and currency
formating? I have a workbook where I am sourcing data and including
data in a sentence. It looks like this, ="Payment due"&" "&H15&"
"&I15&"". Cell H15 is a date and I15 is a dollar amount. Both these
numbers display as numbers with no formating i.e. August 3, 2006 and
$2,432.12. Is there a script that will format this? Thanks


--
BRustigian
------------------------------------------------------------------------
BRustigian's Profile: http://www.excelforum.com/member.php...fo&userid=4345
View this thread: http://www.excelforum.com/showthread...hreadid=568452




All times are GMT +1. The time now is 11:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com