I am trying to add numbers in excel which contain characters.
For example, I want to add
rs30/-
rs40/-
rs45/-
I want result as rs115/-
I tried
=SUM(IF(ISNUMBER(--A1:A3),--A1:A3))
but that gives zero.
I am trying to add numbers in excel which contain characters.
For example, I want to add
rs30/-
rs40/-
rs45/-
I want result as rs115/-
I tried
=SUM(IF(ISNUMBER(--A1:A3),--A1:A3))
but that gives zero.
You can use
MID
to extract the number text from the character string, thenVALUE
to convert that text to an actual numerical value, then add those usingSUM
, then use&
to concatenate with the characters you want before and after the result.Example:
entered as an array formula using Ctrl Shift Enter.
You might prefer to strip out
rs
and/-
(with Find & Select), then format as: