trim

  1. W

    Trim multiple cells using a Do-Until loop is a slow method.

    I receive a weekly csv file from a database where several pieces of data have 3 or 4 empty spaces in a cell, depending on the database character type length. I have set a routine to loop through 3 columns of data to trim each cell in turn (sample attached). This routine, even with screen...
  2. J

    manpuliation of text and numbers

    Hi there Guys , I have a 2 phase issue. The first part of it is that i have a text string and it contains a mix of numbers and letters Sometimes its only numbers Sometimes its numbers and Letters Such as 01Z , 10 and 10z . What i like to be able to do is clear out all of the letters...
  3. W

    Concatenation string help

    I have a worksheet that contains a “space” character at the end on all data records in each row, and in each column (essentially every cell!!!). I am looking for a more productive way to trim the space off of the required data fields where as the macro will not demand so much computer resources...
  4. C

    Need CLEAN data? Noone seems to know HOW to get this clean so it can MATCH.. ??????

    I'm sure this surely happened to other people but can't seem to find anyone who knows how to totally resolve the issue. I have a workbook that has data from an outside system (copied in as Paste+Special "Match Destination Formatting") yet when I try to run code to perform a lookup/match...
  5. F

    Need to trim various prefixed that are in ALL CAPS off of text in a column

    We have song titles in a column that have ALL CAPS prefixes that we use internally to identify the writer/origin of the song. For example: RSCAT TR Let The Sun Shine In RSC GHT Night Runner RD FGH Midnight Mountain I need to trim the ALL CAPS gibberish off of the front of the titles ...
  6. F

    CleanTrim function

    hi, I'm using CleanTrim function wrote by Rick: Trim all Cells in a Worksheet - VBA but I got Run-time error `1004` Application-defined or object-defined error after 1774 recrods my code below Dim sourceWb As WorkbookDim LastRow, x_rows As Long Dim i As Long Set sourceWb = ActiveWorkbook...
  7. A

    Improve existing VBA loop to clean SAP output for MS Access

    So, I get an SAP output from a SPOOL. It comes out as a terrible "|" delimitated .CSV file in multiple "pages" which are actually blank rows with "---------" in between and some other text. I have to clean it before importing it in to Access which I have a VBA script for. I have this code to do...
  8. F

    Use Trim while doing and Index Search Match. Simple formula 4 a complex task ?

    Hi, I have the below excel file in dropbox. promise it's clean :) I would like a simple formula for a complex task. Do not want to add any columns or sort any data. The data will not be sorted alphabetically in any tab. 1) worksheet "email" has a person's full name in column A (with a space...
  9. 3

    Trim Problem

    Hey All! I would have a minor question, I hope you know a solution. I have a colums, that the data for each cell is extracted from an SAP module. It is onlysimple text, but formats are a little strange. Those data cells which have longer text are separated with line breakw, and also there are a...
  10. F

    delete "ENTER" from fields

    hi, if in the filed you have some text/value and then enter char (it makes 2 lines, but the second one is empty). How we can remove it? Trim isn't work here...
  11. G

    Concatenate Cells with dashes/spaces and ignore blank cells

    Hi guys! I checked out and/or searched all the possible formulas that I can use for my project below but no luck so I have finally decided to ask this question... So, my spreadsheet has 12 columns that I need to concatenate using a space and dash.however, the concatenate leaves me with "-"...
  12. K

    combine multiple results into single cell and trim text results

    hello all, i currently have a macro set to open a webpage, search and return data to a specific cell and add the next result in the next row and then format each result to trim out the first 16 characters, what i'm hoping to do is return the results all in the same cell with each result having...
  13. M

    Split by last deliminator

    Hi All, I have been searching everywhere, but nothing came up. I have long list of data (asett IDs). All of it is in the following format. AA-BB-CC-CC001 The number of dash occurences can vary based on the level the asett is located in. I need to extract the parrent of the asett to...
  14. M

    Trim and VLookUp Assistance

    Hello! Thanks for viewing and for the assistance in advance. I have the following requests of a formula: Cell B2 contains the following string of text: Aaron Rodgers (GB, QB) I need for it to be trimmed to the following (With no space after the word Rodgers) Aaron Rodgers ******Edited******...
  15. R

    Help With Trim Function

    Hello - In example below "_" should be read a just a single space " " Database returns Name of Account as follows: A1: "Account_Name__LLC____" What I would like to do is remove the spaces after the "LLC" without removing the double spaces between "Account Name" and "LLC" =TRIM(A1)...
  16. J

    Trimming a cell from user selection to retrieve time & Format it for Outlook Automation

    Hello, I've been working on a macro that will create a meeting maker from a roster in excel 2010. I have a workbook where each sheet is a roster for training that multiple people use, for this reason and for learning reasons I'm doing this in VBA. In my roster I have several columns for...
  17. R

    Special and Hidden Characters

    Hello everyone :):) I have a pdf file...I've converted it into excel....everything seems fine after conversion but the data has hidden spaces and quotes. For example something is written like AB1900 in original file, when I copy it and paste it in search dialog box it appears like "AB1900...
  18. Johnny Thunder

    Macro to Trim all Columns that contain data in a Spreadsheet - Excel 2010

    Hello, I have a sprreadsheet that is a direct download from SQL and it always places a blank character in front of some data in random columns. Is there a Macro that will look into all columns with Data and trim all cells so there is no spaces in front of data? Hoping this is a easy one...
  19. A

    Copy worksheet to a txt file and name it based on a cell name

    Hello, I am trying to copy content of a worksheet to a text file. What i want to know is how can i name the text file based on a given string in a particular cell. And the issue is that i do not need the complete cell content I want to drop/trim last 4 characters of the cell. Eg: value in my...
  20. SimonHughes

    Trim Macro problem

    I have a TRIM macro that fails if I apply it to many cells. I almost always use it to trim cells in a single column. It is fine when working on a limited number, say 60 but more than that and I get an error message. Sub ATrim() Dim R As Long, C As Long, vRng As Variant...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top