Delimiting Without Truncating
May 21, 2009
I have an address file containing a few hundered thousand rows of data. The max character lines for my lables is 60 and unfortunatly a large number of the fields exceed this limit. I need to create a string somthing to the effect of:
delimination
if len(A2<60) end
if len(A2>60) then
if character 60 isblank then deliminate = 60
if character 60 not isblank then deliminate at blank < 60
View 5 Replies
ADVERTISEMENT
May 18, 2006
I have a field that needs to be split into a set amount of columns depending on a delimited character. This works fine with all of your standard delimeted characters such as / or ,. The only issue is I have a field that has a delimiter of the square symbol . How would I be able to insert this symbol into a input box. When I try and copy the symbol from excel it does not show in the inputbox. I also tried to copy it from the sybol that can be generated in word and that just pastes as?. I was wanting to know if there is anyway this can be entered into a variable so that I can delimit the data using this symbol. If I have to use a ascii value I don't mind I just cant find a ascii code for it.
View 5 Replies
View Related
Jul 15, 2014
I have a cell with data separated by hashtags and the letter 'x'
For example #1001x1 refers to a product code and x1 being the quantity.
#1002x2#1003x1# would become:
CODE
QTY
CODE
QTY
1002
2
1003
1
I'm currently using the code:
[Code].....
Sometimes there will be files when there will be lots of codes to delimit, but sometimes there will be no codes to delmit.
So when there reference will only be #1001x1# the above code will try and delimite the next column along (column G) but there is nothing there to delimit and the error code "No data was selected to parse" pops up.
What I'm trying to ask is, is there a way to make a macro that only delimit columns with data.
View 4 Replies
View Related
Dec 5, 2008
I am using the code below to export my data to a new workbook, it creates a new workbook and copies the data into it except not all of it, strangely it seems to truncate the text from some cells ..
View 6 Replies
View Related
Jun 11, 2009
I form a string and put that string into a selected cell as a comment. Mostly it works fine but as the string gets over a certain length (255 characters?), the string gets "truncated" in that only the characters over that length get put into the comment.
View 7 Replies
View Related
Mar 8, 2007
Someone gave me a spread sheet that lists o-ring sizes. Each field has a measurement followed by a +/- range. I need to split the +/- range out into a seperate field. The full sheet has over 400 rows of data. Is there an easy way to automate this? I attached a sample of the sheet.
View 2 Replies
View Related
Jan 27, 2014
We have had a few instances where Excel 2013 is truncating a filename when saving for example "MF Not Settled - Dec 13 Rental A.." the filename includes additional characters than this but has replaced them with .., I initially thought it could be a file path length issue but the files in question the total length is less than 150 characters including the server name.
This is also happening with links inside excel files to different tabs in the same workbook and well as macro names causing them to have to be ran manually as it has truncated the name to .. at the end.
find some examples below:
Full filename: MF Jan 2014 vols Smart churn sensitivity
Truncated filename: MF Jan 2014 vols Smart churn...
Also if you try to link to the truncated workbook whilst open it displays the formula as:
='[MF Jan 2014 vols Smart churn...sitivity.xlsm]Input c!$E$13
My work around is to save the file to another folder, without closing it, and then it works fine. However, in doing this it will try to save as the truncated name, so I first have to select the correct name of the file in the existing folder, before saving to a separate folder. However, if the file is closed, and then reopened the problem returns.
View 2 Replies
View Related
Mar 15, 2009
I have a spreadsheet with 4 columns of information, then a column for a primary name, and then many columns of secondary names (with a different number of secondary names for each row).
For rows with more than 1 secondary name, I need to create a new row with a copy of all the columns up to the secondary name for each secondary name in the row.
A row in the spreadsheet looks like this:
data data data data PrimaryName SecondaryName1 SecondaryName2 SecondaryName3... SecondaryNameN
I need this row to be replaced by the following set of rows:
data data data data PrimaryName SecondaryName1
data data data data PrimaryName SecondaryName2
data data data data PrimaryName SecondaryName3
...
data data data data PrimaryName SecondaryNameN
View 9 Replies
View Related
May 17, 2007
I am trying to plot data that I have read out of a PLC (via csv file) . The date/time data shows up as follows: 2007-05-14T02:15:00.020-07:00
In this example, the suffix .020-07:00 is extra information and causes problems with graphing the info. Also, the cell is a not a number value, and I can not force it to be a general, number format.
I would like to truncate the cell or extract the time out of it such that I can plot the PLC data in a meaningful "parameter vs time" graph.
View 4 Replies
View Related
Jun 16, 2008
I have a macro that copies long decimals (11 places) from an Excel file to a CSV file. However, the long decimals often get truncated from 11 places down to 3 or 4. I've tried a number of different coding methods to combat this, the most recent and most successful of which is shown below
Application.Workbooks.Open Filename:="C:...2008_alldata.csv"
Cells.Select
Selection.ClearContents
ActiveWindow.ActivateNext
Application.Goto Reference:="AllDataTable"
Selection.Copy
ActiveWindow.ActivateNext
Application.Goto Reference:="R1C1"
Selection.PasteSpecial Paste:=xlPasteValues
Range("R2:BI5000").Select
Selection.NumberFormat = "#,##0.00000000000"
ActiveWorkbook.Save
ActiveWindow.Close savechanges:=False
However, sometimes this method also fails. Is there a better way anyone knows of to ensure that the entire decimal is copied?
View 3 Replies
View Related
Jan 11, 2010
I am moving data from Sheet2 to Sheet3.
View 5 Replies
View Related
Jun 6, 2007
I want to import a excel file in the current sheet but want that few of the starting lines are not imported. Suppose i have a file with 500 rows but i dont want to import starting 39 rows.
View 9 Replies
View Related