Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
xcelion
 
Posts: n/a
Default Find the sum of Comma Seperated Values In a Cell


Hi All,
Can anyone help me in writting a formula to find the sum of comma
separated numbers in a cell
Thanks in advance
Xcelion


--
xcelion
------------------------------------------------------------------------
xcelion's Profile: http://www.excelforum.com/member.php...o&userid=16287
View this thread: http://www.excelforum.com/showthread...hreadid=397168

  #2   Report Post  
Junior Member
 
Location: Washington, DC
Posts: 16
Default

Xcelion,

There isn't a native Excel function that can do this, but you can write one easily enough. Drop this function into VB:

---------------------
Function Sum_CSV(CSV_String)

CSV_Temp = "=SUM(" & CSV_String & ")"

Sum_CSV = Evaluate(CSV_Temp)

End Function
---------------------

then use the function as you would any other:

=Sum_CSV(A1)

Knightly

Quote:
Originally Posted by xcelion
Hi All,
Can anyone help me in writting a formula to find the sum of comma
separated numbers in a cell
Thanks in advance
Xcelion


--
xcelion
------------------------------------------------------------------------
xcelion's Profile: http://www.excelforum.com/member.php...o&userid=16287
View this thread: http://www.excelforum.com/showthread...hreadid=397168
  #3   Report Post  
xcelion
 
Posts: n/a
Default


Thanks sirknightly for you answer

This looks fine But i would like to know whether this can be expresses
as formula


--
xcelion
------------------------------------------------------------------------
xcelion's Profile: http://www.excelforum.com/member.php...o&userid=16287
View this thread: http://www.excelforum.com/showthread...hreadid=397168

  #4   Report Post  
dominicb
 
Posts: n/a
Default


Good morning xcelion

As sirknightly says it can't be done by Excel without resorting to
writing your own function - and the one he supplied works just fine.

HTH

DominicB


--
dominicb
------------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php...o&userid=18932
View this thread: http://www.excelforum.com/showthread...hreadid=397168

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need formula to find and sum values in a different spreadsheet Watercolor artist Excel Worksheet Functions 3 June 13th 05 03:41 PM
find a cells from a range of cell kelvintaycc Excel Worksheet Functions 2 April 2nd 05 07:20 PM
How do I find out how many different cell formats an existing wor. wheelsii Excel Discussion (Misc queries) 1 March 24th 05 04:58 PM
Need to find the right-most cell value in a string of cells -dc- Excel Worksheet Functions 2 March 8th 05 07:28 PM
Find Max and Min based on cell reference gregork Excel Discussion (Misc queries) 3 February 21st 05 12:28 AM


All times are GMT +1. The time now is 01:07 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"