Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default summing comma separated values in a range

Just try to explain what it does that you don't want or vice versa/

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Bob Phillips" wrote in message
...

You shouldn't get rid of the hyphens, they are intrinsic to the

solution.

The number of CSV is dependant on the range size, it would be simple

to
define a named range, and use that name in the formula.

I don't know about typically, but here SUBSTITUTE is used to replace

an
instance of the comma with a ~ for uniqueness which FIND will locate,
thereby getting the comma's position. This is passed to the MID

function

to

extract the value between two commas. SUMPRODUCT Then sums across the


range

that location.

The -- is used for coercing Booleans to a number. See
http://www.xldynamic.com/source/xld.SUMPRODUCT.html for details.

I don't know why it is not working for you. I can assure you that it

does
work. I created test data as presented by you, and got the results you


gave,

albeit in separate cells.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"bthoron" wrote in message
oups.com...


Bob- this didn't work out very well for me, I think I got rid of the
hyphens, but all I get is #value.
The other thing I note about the formula method is that it limits

the
number of csv to the number in the formula. The code above could
handle any number of csv (provided the entire range had the same)

I'm curious about --MID and Substitute how are these used typically?

Thanks





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
How to I create a comma separated values file Ruby Excel Discussion (Misc queries) 4 July 25th 09 02:12 PM
How do I convert a column of numbers into comma separated values . cattom44 Excel Worksheet Functions 2 August 3rd 07 09:48 PM
Fixing Comma Separated Values (.csv) dickives Excel Discussion (Misc queries) 1 February 14th 06 03:26 PM
summing comma separated values in a range bthoron Excel Programming 7 April 20th 05 05:32 PM
CSV (Comma Separated Values) delimiter ? Lisa Pearlson Excel Programming 6 January 6th 04 02:30 PM


All times are GMT +1. The time now is 12:33 PM.

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

About Us

"It's about Microsoft Excel"