LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default Function Parse Problem

There is a column in my spreadsheet whose value is usually like this:

36.5,24.0,24.2

I use VBA's parse function to break the number into three columns:

mColumn.Parse parseline:="[xxxx] [xxxx] [xxxx]",
Destination:=nColumn.Cells(1)

For the most part, this single line of code works well. Then there's
the odd cell which is like this:

103.3,24.8,25.2

The first number has an extra digit and the results are wrong. I tried
to solve the problem by examing which cells have the extra digit and
use the left, mid and right functions to deal with those special
cells. None of my formulas worked. The cells would always have the
same wrong values. Out of frustration, I tried to clear the contents
of the cells created by the parse function (with VBA, not at the Excel
page itself). To my amazement, I couldn't do that. It seems that the
values placed in the three new columns by the parse function cannot be
changed. I am now scratching my head as to what I can do. Perhaps
someone can tell me a better way to parse those numbers?
 
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
Excel invoke REST service function with Xpath fn parse result! Rand0m1y Excel Worksheet Functions 0 June 4th 09 03:43 PM
How do I parse the cell reference function? Phil Excel Worksheet Functions 1 December 18th 08 12:43 PM
Parse from the Right PA Excel Worksheet Functions 6 June 11th 06 06:05 PM
Parse formula Don Guillett[_4_] Excel Programming 2 January 21st 04 10:07 PM
Parse Sarah[_4_] Excel Programming 2 December 30th 03 11:16 PM


All times are GMT +1. The time now is 05:34 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"