If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Help: Deleting row if cell in column 'X' empty

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-27-11, 20:47
psyc psyc is offline
Registered User
 
Join Date: Feb 2011
Posts: 1
Help: Deleting row if cell in column 'X' empty

Hi Guys,

Firstly, please excuse my ignorance on the subject of basic excel programming. I am a psyc student completing my masters research and need to do a bit of manipulation on the data...Any help would be MUCH appreciated !!!

Anyway, the situation is that I have a large worksheet, with approx 30,000 rows and approx 35 columns. The sheet is a collection of psychometric test candidate answers, with each question (item) being represented across the top, and each candidate being represented in a row. Some of the candidates did not answer some of the questions. I need to remove these candidates (rows) that did not answer at least one of the questions.

I found some code that would delete the row if it found an empty cell, but now it appears the cells arent actually 'empty' but are 'blank' and contain data (I hope I got that distinction right). Would someone be able to point me in the right direction here?

I might have to first use code that can change the 'blank' (data containing) cells into empty cells, and then use the other code I found to delete the rows containing 'empty' cells.

Once again, I would be greatly indebted to anyone that could assist.
Reply With Quote
  #2 (permalink)  
Old 02-28-11, 06:01
Colin Legg Colin Legg is offline
Registered User
 
Join Date: Sep 2008
Location: London, UK
Posts: 495
Hi,

Instead of using code, maybe you could use the autofilter or advanced filter to filter for the rows you want to delete, and then delete them?
Quote:
but now it appears the cells arent actually 'empty' but are 'blank' and contain data
What do these cells contain?

Are all these cells in the same column or are they in multiple columns?
__________________
Colin

RAD Excel Blog

Other tutorials:
Array Formulas | Deleting Rows with VBA
Reply With Quote
  #3 (permalink)  
Old 03-22-11, 18:12
finanzas finanzas is offline
Registered User
 
Join Date: Mar 2011
Posts: 1
Hi psyc,

In the past the easiest way I have done this is to sort all the data in either descending or ascending order. You can do this by selecting all of the data and top menu Data > Sort. This will "group" all of the empty cells together and then you can just delete them manually?

Just my two cents...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On