Sum Multiple Values In A Single Cell

RUCEE

New Member
Joined
May 6, 2010
Messages
2
I am trying to sum multiple values contained in single cell.
I have the following data in Column A:
9.5/4/6
3/4/6.5/7.8

My list goes on for over 700 entries.
The number of values separated by a slash changes as does the number of decimal points in each value.

I need to get the sum of each row to show up in Column B.

I prefer a non VBA solution if possible.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Welcome to the Board...

This would be tricky to do via formula.

Have you considered Text to Columns with a "/" Delimiter?

Matty
 
Upvote 0
Welcome to the Board!

Can you parse it out with Data-->Text to Columns-->Delimited-->"/"?

Then just sum from the last new column back. That will be much easier.
 
Upvote 0
Or a UDF that goes in a regular module

Code:
Function SplitSum(r As Range) As Double
Dim i As Integer, X
X = Split(r.Value, "/")
For i = LBound(X) To UBound(X)
    SplitSum = SplitSum + X(i)
Next i
End Function


To use

=splitsum(A1)
 
Upvote 0
I could separate the data into columns but it would make the sheets messy and not very dynamic. Sometimes there is only 1 value and others there are 6.
 
Upvote 0
Hi Rucee
Welcome to the board

Try:

=SUM(0+(0&MID(A1,FIND("#",SUBSTITUTE("/"&A1&"//////","/","#",{1,2,3,4,5,6})),FIND("#",SUBSTITUTE(A1&"//////","/","#",{1,2,3,4,5,6}))-FIND("#",SUBSTITUTE("/"&A1&"//////","/","#",{1,2,3,4,5,6})))))
 
Upvote 0
Hi Rucee
Welcome to the board

Try:

=SUM(0+(0&MID(A1,FIND("#",SUBSTITUTE("/"&A1&"//////","/","#",{1,2,3,4,5,6})),FIND("#",SUBSTITUTE(A1&"//////","/","#",{1,2,3,4,5,6}))-FIND("#",SUBSTITUTE("/"&A1&"//////","/","#",{1,2,3,4,5,6})))))

Good grief! It'll take me at least a week to figure out how that works (y)
 
Upvote 0
I had a play around with a few options, but failed miserably...

Respect, pgc01 (y)

Now to figure out how it works!

Matty
 
Upvote 0
VoG, your solution works the best so far. Only one problem: after I copy the formula down for all of my entries, I cannot sum that column. I get a #Value! error.


pgc01, your solution works also, but only up to 6 values. Anyway to make it not care how many values there are? I do like that it is a formula however.


Thanks all for your help.
 
Upvote 0

Forum statistics

Threads
1,214,630
Messages
6,120,634
Members
448,973
Latest member
ChristineC

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