Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-28-2017, 11:15 PM
FUGMAN FUGMAN is offline eliminating blan rows between cells in a column cantaining data Windows 10 eliminating blan rows between cells in a column cantaining data Office 2016
Banned
eliminating blan rows between cells in a column cantaining data
 
Join Date: Feb 2017
Posts: 55
FUGMAN is on a distinguished road
Default eliminating blan rows between cells in a column cantaining data

The assistance I have previously received in this Forum has been excellent.
I am thanking you in advance for any assistance regarding the following issue.



I have a column consisting of predictable data categories such as the following:

Column "A"
aaaa
bbbb
cccc
dddd
eeee

Unfortunately, the data is available to me with an unknown number of blank rows separating them such as:

Column "A"
"aaaa"


"bbbb"
"cccc"

"dddd"




"eeee"

The number of blank rows is inconsistent from one source to the next. I would like a procedure that will eliminate any blank rows between the values "aaaa" through "eeee". In addition, the nature of the beast is such that filter sorting is not an option.
Reply With Quote
  #2  
Old 02-28-2017, 11:45 PM
NoSparks NoSparks is offline eliminating blan rows between cells in a column cantaining data Windows 7 64bit eliminating blan rows between cells in a column cantaining data Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 831
NoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really nice
Default

If your data starts in A1 and there is nothing in column A below "eeee", this should work
Code:
Range("A1", Cells(Rows.Count, "A").End(xlUp)).SpecialCells(xlBlanks).EntireRow.Delete
Reply With Quote
  #3  
Old 03-01-2017, 12:10 AM
FUGMAN FUGMAN is offline eliminating blan rows between cells in a column cantaining data Windows 10 eliminating blan rows between cells in a column cantaining data Office 2016
Banned
eliminating blan rows between cells in a column cantaining data
 
Join Date: Feb 2017
Posts: 55
FUGMAN is on a distinguished road
Default

NoSparks...Thank you very much for your input. Will try this tomorrow...after good nights sleep.
Reply With Quote
  #4  
Old 03-01-2017, 12:42 AM
FUGMAN FUGMAN is offline eliminating blan rows between cells in a column cantaining data Windows 10 eliminating blan rows between cells in a column cantaining data Office 2016
Banned
eliminating blan rows between cells in a column cantaining data
 
Join Date: Feb 2017
Posts: 55
FUGMAN is on a distinguished road
Default

If I just wanted to delete the blank cells, to what would I change "EntireRow.Delete" ?
Reply With Quote
  #5  
Old 03-01-2017, 12:55 AM
FUGMAN FUGMAN is offline eliminating blan rows between cells in a column cantaining data Windows 10 eliminating blan rows between cells in a column cantaining data Office 2016
Banned
eliminating blan rows between cells in a column cantaining data
 
Join Date: Feb 2017
Posts: 55
FUGMAN is on a distinguished road
Default

Could not wait till tomorrow. If there are blank cells it works great, but if there are no blank cells then I get an error message saying no cells found and it interrupts the procedure.
Reply With Quote
  #6  
Old 03-01-2017, 01:27 AM
FUGMAN FUGMAN is offline eliminating blan rows between cells in a column cantaining data Windows 10 eliminating blan rows between cells in a column cantaining data Office 2016
Banned
eliminating blan rows between cells in a column cantaining data
 
Join Date: Feb 2017
Posts: 55
FUGMAN is on a distinguished road
Default

Another thing raised its ugly head. Commas are an issue as well as blank cells. Assuming another line of code, to what would I change (xlBlanks) to get rid of the commas?
Reply With Quote
  #7  
Old 03-01-2017, 07:35 AM
NoSparks NoSparks is offline eliminating blan rows between cells in a column cantaining data Windows 7 64bit eliminating blan rows between cells in a column cantaining data Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 831
NoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really nice
Default

Think you need to clarify what you're trying to do and what you're trying to do it with.

Posting a (de-sensitized) sample workbook with a 'before' and 'after' example would have us all dealing with the same thing.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
eliminating blan rows between cells in a column cantaining data Merge duplicate rows but retain data from one column Willem113 Excel 1 09-21-2016 05:42 PM
eliminating blan rows between cells in a column cantaining data Macro for Column to Rows Data brunssl2 Excel Programming 3 04-28-2014 07:07 AM
eliminating blan rows between cells in a column cantaining data How to send several rows of data from one column to each recipient in one go mikustykus Mail Merge 14 09-30-2013 08:32 AM
eliminating blan rows between cells in a column cantaining data Eliminating zeros, null values and negatives in a column jannie Excel 1 06-22-2011 07:03 PM
Count range cells eliminating merge cells danbenedek Excel 0 06-15-2010 12:40 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:41 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft