ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   text combined with values (https://www.excelbanter.com/excel-discussion-misc-queries/264799-text-combined-values.html)

gloucester county

text combined with values
 
In cell A1 I typed s1.5 in cell A2 I typed s2 how do I add the values to
equal s3.5?

Mike H

text combined with values
 
Hi,

I wouldn't start from having numbers and letters in the same cell but if you
must

=LEFT(A1,1)&MID(A1,2,LEN(A1))+MID(A2,2,LEN(A2))

Why not use a custom format for the cell of

"s"0.0

Now you can sum them using sum
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"gloucester county" wrote:

In cell A1 I typed s1.5 in cell A2 I typed s2 how do I add the values to
equal s3.5?


Jacob Skaria

text combined with values
 
Try
=SUMPRODUCT(--SUBSTITUTE(A1:A2,"s",))

--
Jacob (MVP - Excel)


"gloucester county" wrote:

In cell A1 I typed s1.5 in cell A2 I typed s2 how do I add the values to
equal s3.5?


tim m

text combined with values
 


"gloucester county" wrote:

In cell A1 I typed s1.5 in cell A2 I typed s2 how do I add the values to
equal s3.5?


There are probably more efficient ways to do this but I experimented and
this seems to work.

Insert a column and enter the following formula:

=(RIGHT(A1,(LEN(A1)-1))*1)

Copy that formula down the length of your calculations.

In the cell where you want the sum insert this formula:

="s"&SUM(D1:D2)

Depending on how many of these you need to do it would be easier probably to
enter them separately as text and number and then combine the s to the number
after the fact.


All times are GMT +1. The time now is 06:56 PM.

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