ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I format Concatenate function? (https://www.excelbanter.com/excel-discussion-misc-queries/138409-how-do-i-format-concatenate-function.html)

deepc

How do I format Concatenate function?
 
My goal is to combine 2 values that are calculated in their respective cells
into one string.
What I have is the number '2' in cell A1 and the number '3 1/8' in cell B1.
I want to come up with the text 2'-3 1/8" in cell C1. My problem is that the
inches part of it comes out in decimals, not as a fraction, ie. I get
2'-3.0625" instead. What is the easiest way to solve this? I've got thousands
of cells to convert.

David Biddulph[_2_]

How do I format Concatenate function?
 
=A1&"' - "&TEXT(B1,"# ?/?")&""""
--
David Biddulph

"deepc" wrote in message
...
My goal is to combine 2 values that are calculated in their respective
cells
into one string.
What I have is the number '2' in cell A1 and the number '3 1/8' in cell
B1.
I want to come up with the text 2'-3 1/8" in cell C1. My problem is that
the
inches part of it comes out in decimals, not as a fraction, ie. I get
2'-3.0625" instead. What is the easiest way to solve this? I've got
thousands
of cells to convert.




Ron Rosenfeld

How do I format Concatenate function?
 
On Tue, 10 Apr 2007 04:22:00 -0700, deepc
wrote:

My goal is to combine 2 values that are calculated in their respective cells
into one string.
What I have is the number '2' in cell A1 and the number '3 1/8' in cell B1.
I want to come up with the text 2'-3 1/8" in cell C1. My problem is that the
inches part of it comes out in decimals, not as a fraction, ie. I get
2'-3.0625" instead. What is the easiest way to solve this? I've got thousands
of cells to convert.


Use the TEXT worksheet function to format. E.g:

=TEXT(A1, "# ?/8") & "-" & TEXT(B1, "# ?/8")


--ron

JE McGimpsey

How do I format Concatenate function?
 
One way:

=TEXT(A1,"0'-") & TEXT(C1,"0 ?/?\""")


In article ,
deepc wrote:

My goal is to combine 2 values that are calculated in their respective cells
into one string.
What I have is the number '2' in cell A1 and the number '3 1/8' in cell B1.
I want to come up with the text 2'-3 1/8" in cell C1. My problem is that the
inches part of it comes out in decimals, not as a fraction, ie. I get
2'-3.0625" instead. What is the easiest way to solve this? I've got thousands
of cells to convert.



All times are GMT +1. The time now is 02:34 PM.

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