Hello All,
I've been looking around for solutions to this type of scenario, and have found different variants, but haven't found anything that suits my needs...
I have strings that contains values (accounting variance descriptions with abbreviated numbers)... what I'm looking for is to parse the numbers then sum the numbers but there's a catch, there's always a catch...
for instance, take this string...
"mainly due to Clearing $150.3M / Operating NIB -$71.5M / Collections Receivable $1,470.5B / Cash and Due From Banks -$84.3K"
There could be positive and negative values.
Now, we can't just sum each number to get a total because the values are formatted ie (K) thousands, (M) millions and (B) Billions. I believe we have to parse the numbers then reallocate the value by multiplying by a variable ie. If a number ends in "K", then multiply by 1,000
if a number ends in "M", then multiply by 1,000,000
if a number ends in "B", then multiply by 1,000,000 (this stays at 1,000,000 because the actual format was extended ie $1,470.5B not $1.5B (rounded)).
Then the sum of those converted numbers to get a total.
I thought about creating three separate formulas in one cell where they add together but I still haven't come up with a one or three formula solution.
Hope this makes sense....
Thanks.
I've been looking around for solutions to this type of scenario, and have found different variants, but haven't found anything that suits my needs...
I have strings that contains values (accounting variance descriptions with abbreviated numbers)... what I'm looking for is to parse the numbers then sum the numbers but there's a catch, there's always a catch...
for instance, take this string...
"mainly due to Clearing $150.3M / Operating NIB -$71.5M / Collections Receivable $1,470.5B / Cash and Due From Banks -$84.3K"
There could be positive and negative values.
Now, we can't just sum each number to get a total because the values are formatted ie (K) thousands, (M) millions and (B) Billions. I believe we have to parse the numbers then reallocate the value by multiplying by a variable ie. If a number ends in "K", then multiply by 1,000
if a number ends in "M", then multiply by 1,000,000
if a number ends in "B", then multiply by 1,000,000 (this stays at 1,000,000 because the actual format was extended ie $1,470.5B not $1.5B (rounded)).
Then the sum of those converted numbers to get a total.
I thought about creating three separate formulas in one cell where they add together but I still haven't come up with a one or three formula solution.
Hope this makes sense....
Thanks.