Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting rid of empty rows

Status
Not open for further replies.

sds814

Programmer
Feb 18, 2008
164
US
I have a workbook with two columns. Column A and Column B have empty rows spread out the spreadsheet. How can I get rid of the empty rows when Column A and column B don't have any data?

Example:

column A column B
Test Test1

Test2 Test 3
Test4 Test 5

Test 6 Test7
 
Do you want to delete the rows entirely or could you have it display elsewhere without the blank rows.
if all the values in column A are unique you could use a pivot table which could display your data without the blanks
but if you want to automatically remove the rows from the sheet you will need to use a macro
 
Autofilter

Col A: Blanks
Col B: Blanks

delete all rows that are filtered

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top