move data up when empty cells above

leecavturbo

Well-known Member
Joined
Jan 4, 2008
Messages
681
i have a column of info say a1 to a20
but a6 and a14 are empty.
so how can i get a7 to move upto a6 and a15 to a14 leaving the column now sorted with no empty cells a1 to a18.
thx in advance
Lee
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
The answer is in your question...
so how can i get a7 to move upto a6 and a15 to a14 leaving the column now sorted with no empty cells a1 to a18

You could try

Data - Sort - Ascending
But that may not be what you want, it will likely rearrange the data into alphabetic/numeric order (if it wasn't already)..

So maybe try this instead

Highlight the column,
Click Edit - Goto - Special
Select Blanks
Click OK
Right Click Any highlighted Cell
Delete - Shift UP
 
Upvote 0
ok that works great for a single column.thx.
but now some data that was in column b thats linked to a is now in the wrong cell. there not linked by formula.
basically i have a list of items a1 to a20. a6 and a14 area empty.
column b1 to b20 has a price of each item but not all item have prices.
so when i moved the data up in a to the empty cells the prices where not
aligned correctly.
 
Upvote 0
follow the same steps (edit - goto - special - blanks).

Delete

Instead of Shift UP, select Entire Row
 
Upvote 0

Forum statistics

Threads
1,214,415
Messages
6,119,375
Members
448,888
Latest member
Arle8907

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