ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Symbol or text after number to used in sum (https://www.excelbanter.com/excel-worksheet-functions/132443-symbol-text-after-number-used-sum.html)

Be18

Symbol or text after number to used in sum
 
Please could you tell me if it is possible to insert a symbol or a letter
after a number in the same cell and still use the number in that cell in a
sum? For example i want to put 11.5* in B1, 11.5 in b2, 15 in b3 and add the
3 numbers togteher excluding the astreick in b4) Thank you


Duke Carey

Symbol or text after number to used in sum
 
This array formula appears to work

=SUM(--SUBSTITUTE(B11:B3,"*",""))

commit it with Ctrl-Shift-Enter


"Be18" wrote:

Please could you tell me if it is possible to insert a symbol or a letter
after a number in the same cell and still use the number in that cell in a
sum? For example i want to put 11.5* in B1, 11.5 in b2, 15 in b3 and add the
3 numbers togteher excluding the astreick in b4) Thank you


Harlan Grove

Symbol or text after number to used in sum
 
Duke Carey wrote...
This array formula appears to work

=SUM(--SUBSTITUTE(B11:B3,"*",""))

commit it with Ctrl-Shift-Enter

....

Or use SUMPRODUCT, e.g.,

=SUMPRODUCT(--SUBSTITUTE(B1:B3,"*",""))

and not have to bother with array entry.


Duke Carey

Symbol or text after number to used in sum
 
Harlan -

There's a long series of posts in an earlier thread "Extracting a numbers
from a text string" where I finally got the answer for the OP, but I'd bet
you could promulgate a far simpler solution. Can you take a look?


"Harlan Grove" wrote:

Duke Carey wrote...
This array formula appears to work

=SUM(--SUBSTITUTE(B11:B3,"*",""))

commit it with Ctrl-Shift-Enter

....

Or use SUMPRODUCT, e.g.,

=SUMPRODUCT(--SUBSTITUTE(B1:B3,"*",""))

and not have to bother with array entry.



Brad

Symbol or text after number to used in sum
 
Another way is to use the custom format feature of Excel.

Format cells - custom

enter

# "*"

That way you can use the sum function without all the other hoopla

"Be18" wrote:

Please could you tell me if it is possible to insert a symbol or a letter
after a number in the same cell and still use the number in that cell in a
sum? For example i want to put 11.5* in B1, 11.5 in b2, 15 in b3 and add the
3 numbers togteher excluding the astreick in b4) Thank you



All times are GMT +1. The time now is 02:17 AM.

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