ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Adding cells with numbers and text (https://www.excelbanter.com/excel-worksheet-functions/5998-adding-cells-numbers-text.html)

EddieZ

Adding cells with numbers and text
 
I have a series of cells with mileage such as "1.02 mi".
I'd like to add the mileages without having to delete
the "mi". Is that possible?

Thank You!

EZ

tjtjjtjt

This seems to do what you are asking, provided there is a space between the
end of the number and the beginning of the text.
=SUM(LEFT(A1,FIND(" ",A1,1)))

tj

"EddieZ" wrote:

I have a series of cells with mileage such as "1.02 mi".
I'd like to add the mileages without having to delete
the "mi". Is that possible?

Thank You!

EZ


tjtjjtjt

You could also use Data | Text to Columns

tj

"EddieZ" wrote:

I have a series of cells with mileage such as "1.02 mi".
I'd like to add the mileages without having to delete
the "mi". Is that possible?

Thank You!

EZ


EddieZ

Perfect. Thank You!

EZ
-----Original Message-----
This seems to do what you are asking, provided there is a

space between the
end of the number and the beginning of the text.
=SUM(LEFT(A1,FIND(" ",A1,1)))

tj

"EddieZ" wrote:

I have a series of cells with mileage such as "1.02

mi".
I'd like to add the mileages without having to delete
the "mi". Is that possible?

Thank You!

EZ

.


EddieZ

Even easier. Thanks!
-----Original Message-----
You could also use Data | Text to Columns

tj

"EddieZ" wrote:

I have a series of cells with mileage such as "1.02

mi".
I'd like to add the mileages without having to delete
the "mi". Is that possible?

Thank You!

EZ

.



All times are GMT +1. The time now is 10:41 PM.

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