ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   sum with text in cell (https://www.excelbanter.com/excel-worksheet-functions/92073-sum-text-cell.html)

[email protected]

sum with text in cell
 
hello,

I am trying to do a sum on a group of cells that have a range between 3
and 10.5 the cells are as follows.

3 HP
3 HDP
3 SP
3 HSP

I would like to create a sum so that it would equel 12 or the equivlant
there in. the text needs to show as it is important. and they need to
be in the same cell. is this possible?


Ron Coderre

sum with text in cell
 
Maybe something like this:

With values like you described (a number followed by spaces followed by
letters) in A1:A10.

The total of the leading numbers:
A11: =SUMPRODUCT(--LEFT(A1:A10&"0 ",SEARCH(" ",A1:A10&"0 ")))

Does that help?
***********
Regards,
Ron

XL2002, WinXP


" wrote:

hello,

I am trying to do a sum on a group of cells that have a range between 3
and 10.5 the cells are as follows.

3 HP
3 HDP
3 SP
3 HSP

I would like to create a sum so that it would equel 12 or the equivlant
there in. the text needs to show as it is important. and they need to
be in the same cell. is this possible?




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

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