Multiple Date inside one cell

Marsman

Board Regular
Joined
May 13, 2013
Messages
62
Office Version
  1. 365
Platform
  1. Windows
I receive this from a program in this format where the data is in one cell. I'd like to take a list of numbers in that format, which would vary in length (say 1-25 entries or more), and calculate its sum. is there a way to pars each row out of this cell to place into individual cells or somehow to get a total?

Example:

AB
1ChargesTotal
21500.00
250.00
150.00

<tbody>
</tbody>

<colgroup><col width="64" span="2" style="width:48pt"></colgroup><tbody>
</tbody>


Thanks in advance
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Code:
' =SUMbyvblf(A2)
Function SumByVBlf(aCell As Range) As Double
  Dim d As Double, v As Variant
  For Each v In Split(aCell, vbLf)
    d = d + v
  Next v
  SumByVBlf = d
End Function
 
Upvote 0

Forum statistics

Threads
1,213,567
Messages
6,114,342
Members
448,570
Latest member
rik81h

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top