![]() |
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 |
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 |
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. |
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. |
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