Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Stripping Spaces from Right Hand Side
Hi
I have tables of data from a financial system where the non-numeric raw data is filled with spaces when supplied to me. I am using a loop to test each cell for these "filler spaces" on the right hand end of each cell and then applying RTRIM to get the valid text. Is there a shortcut alternative to using the looping - it seems quite slow Thanks Tim |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Stripping Spaces from Right Hand Side
1. Can your SQL handle that right-trim? Might be faster.
2. Do a right trim without testing first. 3. Put the whole range in an array and do the right-trimming on the array elements then put back in the range. 4. Use RTrim$ instead of RTrim as it is up to twice as fast. RBS "Tim Childs" wrote in message ... Hi I have tables of data from a financial system where the non-numeric raw data is filled with spaces when supplied to me. I am using a loop to test each cell for these "filler spaces" on the right hand end of each cell and then applying RTRIM to get the valid text. Is there a shortcut alternative to using the looping - it seems quite slow Thanks Tim |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Stripping Spaces from Right Hand Side
Hi
Many thanks for those suggestions Out of interest, can you say why in "4." RTrim$ is so much quicker? Best wishes Tim "RB Smissaert" wrote in message ... 1. Can your SQL handle that right-trim? Might be faster. 2. Do a right trim without testing first. 3. Put the whole range in an array and do the right-trimming on the array elements then put back in the range. 4. Use RTrim$ instead of RTrim as it is up to twice as fast. RBS "Tim Childs" wrote in message ... Hi I have tables of data from a financial system where the non-numeric raw data is filled with spaces when supplied to me. I am using a loop to test each cell for these "filler spaces" on the right hand end of each cell and then applying RTRIM to get the valid text. Is there a shortcut alternative to using the looping - it seems quite slow Thanks Tim |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Stripping Spaces from Right Hand Side
Look at this:
http://www.aivosto.com/vbtips/stringopt.html RBS "Tim Childs" wrote in message ... Hi Many thanks for those suggestions Out of interest, can you say why in "4." RTrim$ is so much quicker? Best wishes Tim "RB Smissaert" wrote in message ... 1. Can your SQL handle that right-trim? Might be faster. 2. Do a right trim without testing first. 3. Put the whole range in an array and do the right-trimming on the array elements then put back in the range. 4. Use RTrim$ instead of RTrim as it is up to twice as fast. RBS "Tim Childs" wrote in message ... Hi I have tables of data from a financial system where the non-numeric raw data is filled with spaces when supplied to me. I am using a loop to test each cell for these "filler spaces" on the right hand end of each cell and then applying RTRIM to get the valid text. Is there a shortcut alternative to using the looping - it seems quite slow Thanks Tim |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how to return data from a right hand side/and one cell down | Excel Worksheet Functions | |||
Stripping spaces using a formula, not VBA | Excel Programming | |||
Stripping out imbedded spaces in a cell/row | Excel Worksheet Functions | |||
y-axis moves from the left hand side to the right hand side | Excel Discussion (Misc queries) | |||
y-axis moves from the left hand side to the right hand side! | Charts and Charting in Excel |