Assume cell A12 contains the value 1435. Enter the following formula into another cell:
="Total: "&A12
The formula cell will display: "Total: 1435."
The ampersand (&) is a concatenation operator that joins the text with the contents of cell A12.
Applying a number format to the cell containing the formula has no effect, because the cell contains text, not a value. As a work-around, modify the formula to use the TEXT function (the second argument for the TEXT function consists of a standard Excel number-format string).
="Total: "&TEXT(A12,"$#,##0.00")
This formula will display "Total: $1,435.00."
Here's another example formula that uses the NOW function to display some text along with the current date and time:
="Report printed on "&TEXT(NOW(),"mmmm d, yyyy at h:mm AM/PM")
By the same process, If Cell B12 contained 12, the entry =(B12+5)&" Dollars" would display "17 Dollars"
Juts format the cell using Format / Cells / Number and then hit custom and put in
0 " & Days"
Regards
Ken............
---------------------------------------------------------------------------- It's easier to beg forgiveness than ask permission
----------------------------------------------------------------------------
Oops - You don't want the & in the text do you, so just use
0 " Days"
---------------------------------------------------------------------------- It's easier to beg forgiveness than ask permission
----------------------------------------------------------------------------
Whilst it may not matter for your data, the difference bewteen what you have done and what i suggested is that your cell now contains TEXT and cannot be used in any further calculations, whereas mine left your data as numeric and still able to be used in calculations if needed.
Regards
Ken..........
---------------------------------------------------------------------------- It's easier to beg forgiveness than ask permission
----------------------------------------------------------------------------
It means youe data will be displayed rounded to the nearest integer. You could also have used
0.0 " Holiday(s)"
or
0.00 " Holiday(s)"
etc
---------------------------------------------------------------------------- It's easier to beg forgiveness than ask permission
----------------------------------------------------------------------------
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.