excel - Extract set of numbers from a string, subtract and then add them with certain exclusions -
i'm not great excel formulas, have excel column 'logical diskspace', each cell of has similar value below.
| disk c: (ntfs)20.9731 gb (3.7077 gb free space) | disk e: (ntfs)107.3767 gb (22.7083 gb free space) | disk f: (ntfs)107.3767 gb (38.0516 gb free space) | disk g: (ntfs)53.6781 gb (21.7887 gb free space) | disk p: (ntfs)4.7252 gb (0.5997 gb free space)
what need find total used capacity excluding c: drive.
taking above example, should calculate follows:
exclude c: + (107.3767-22.7083)+(107.3767-38.0516)+(53.6781-21.7887)+(4.7252-0.5997)
note number of drives may vary delimited '|' sign.
could me programmatic approach achieve this?
vba not necessary tedious more 1 time without record macro activated. series of find , replace:
find, in turn:
free space) |disk
free space)
: (ntfs)
gb
and replace each nothing (the first , last above start space).
find (
replace -
find, in turn f
, g
, p
, replace each +
find |disk*e
, replace =
.
Comments
Post a Comment