+ Reply to Thread
Results 1 to 4 of 4

Move filled cells in Col A to top of data

  1. #1
    Forum Contributor
    Join Date
    03-30-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2013
    Posts
    274

    Move filled cells in Col A to top of data

    Hi guys I have some cells in col A that needs moving to top of data
    cell A is null
    B has data
    c is null
    D has data
    and so on so many cells can be empty or filled
    I need to move all filled cells to top , including adjacent columns
    so i guess it is like a sort on all columns with filled cells in col A on top

    Regards
    Graham

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,937

    Re: Move filled cells in Col A to top of data

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Move filled cells in Col A to top of data

    Quote Originally Posted by Grahamfeeley View Post
    I need to move all filled cells to top , including adjacent columns
    so i guess it is like a sort on all columns with filled cells in col A on top
    Put this formula in an empty column and copy it down.
    =IF(A1<>"",ROW(),"")

    Select all your data including this formula column and sort it using the formula column as the criteria. You can clear the formulas after the sort. These steps could be recorded to a macro.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Move filled cells in Col A to top of data

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Data Validation to circle blanks cells between filled cells
    By jamiem4 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-16-2014, 05:58 PM
  2. Count filled and empty cells from the first filled cell in a row
    By mdaoust in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-01-2014, 01:23 PM
  3. Require input data in certain cells if other cells are filled before saving
    By Jenkins86 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2013, 08:07 PM
  4. Collecting data from filled cells and skipping blank cells
    By KellieB in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-20-2012, 09:45 PM
  5. Replies: 12
    Last Post: 07-10-2012, 05:04 PM
  6. Search a row, extracting data from filled cells
    By b^d in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-01-2010, 02:42 AM
  7. Replies: 1
    Last Post: 10-11-2009, 04:59 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1