#1
|
|||
|
|||
deleting blanks and commas
NoSparks
Column "A 1 aaaa 2 blank 3 bbbb 4 blank 5 comma 7 cccc 6 blank 8 comma 9 dddd 10 eeee Column "B" 1 aaaa 2 bbbb 3 cccc 4 dddd 5 eeee I receive data in a vertical configuration (column "A"). However the data shows up in an inconsistent manner because the number of blank spaces separating the desired data varies. In addition, there are commas randomly included in the column "A". What I am wanting to do is to transfer the data in column "A" to column "B" so that each category of data (aaaa, bbbb, cccc, dddd,eeee) will reside in a constant address. What you have provided me so far does the job,. However, I mistakenly specified to delete the "entire row" where blanks occurred instead of just deleting the "cell "where the blank occurred. I also neglected to mention where the commas occur that I want to those cells to be deleted as well. In addition to the info you have provided, Range("A1", Cells(Rows.Count, "A").End(xlUp)).SpecialCells(xlBlanks).EntireRow.D elete if I just wanted to delete the blank cells, to would I change "EntireRow.Delete" ? And to what would I change (xlBlanks) to get rid of the commas? |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
pivot not showing number format with commas | olybobo | Excel | 1 | 05-05-2016 05:09 PM |
Counting Blanks in 1 Column and Non-Blanks in Another | dogwood705 | Excel | 4 | 02-07-2015 08:45 AM |
Commas within fields in .csv files | gar | Excel | 1 | 01-29-2015 09:24 PM |
How to use mid or left functions to seperate city,st,zip with no commas | sinaranje | Excel | 4 | 11-11-2014 10:52 PM |
No inverted commas in word 2013. | tonycrossley | Word | 3 | 01-27-2014 04:55 PM |