ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   format date & number within a cell containing text (https://www.excelbanter.com/excel-discussion-misc-queries/185479-format-date-number-within-cell-containing-text.html)

Sam

format date & number within a cell containing text
 
I'm trying to create cells in a worksheet which are text with calculated
dates & numbers imported from other cells in the workbook. My problem is
that the date reverts to the numeric form & the numbers have many decimal
places.
I would like to retain the mm/dd/yyyy date format & display only whole
numbers. The formula I am using to import the information is:
="text to appear with date" & Q5
or
=L5& " text to describe number"

What can I do to change the results?


Pete_UK

format date & number within a cell containing text
 
Try this:

="text to appear with date " & TEXT(Q5,"mm/dd/yyyy")

or

=INT(L5) & " text to describe number"

Hope this helps.

Pete

On Apr 29, 1:57*pm, sam wrote:
I'm trying to create cells in a worksheet which are text with calculated
dates & numbers imported from other cells in the workbook. *My problem is
that the date reverts to the numeric form & the numbers have many decimal
places.
I would like to retain the mm/dd/yyyy date format & display only whole
numbers. *The formula I am using to import the information is:
="text to appear with date" & Q5
or
=L5& " text to describe number"

What can I do to change the results?



Stefi

format date & number within a cell containing text
 
="text to appear with date"&TEXT(Q5,"mm/dd/yyyy")
=INT(L5)& " text to describe number"
Regards,
Stefi


€žsam€ť ezt Ă*rta:

I'm trying to create cells in a worksheet which are text with calculated
dates & numbers imported from other cells in the workbook. My problem is
that the date reverts to the numeric form & the numbers have many decimal
places.
I would like to retain the mm/dd/yyyy date format & display only whole
numbers. The formula I am using to import the information is:
="text to appear with date" & Q5
or
=L5& " text to describe number"

What can I do to change the results?



All times are GMT +1. The time now is 11:40 AM.

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