+ Reply to Thread
Results 1 to 7 of 7

How to shift cells to the right

  1. #1
    Registered User
    Join Date
    06-22-2007
    Posts
    4

    How to shift cells to the right

    I am trying to shift many rows of cells to the right over empty cells. Basically, as I show in the attached screenshot, I want to move all the rows to the right so that they are right justified on column 'U'. My table has thousands of rows so I was hoping there is an easy way to shift each row over, I just can't figure it out

    Excel shift to right.jpg

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: How to shift cells to the right

    I don't think your image really shows what you requirement is.

    Perhaps it would be easier to understand if you attached a small sample workbook showing a before and after.

    To attach a file, click on "Go Advanced" below your reply then scroll down to "Manage Attachments". Click on that to open the upload window.

    BSB

  3. #3
    Registered User
    Join Date
    06-22-2007
    Posts
    4

    Re: How to shift cells to the right

    Thanks for your help. Per your suggestion, I uploaded an Excel file that has two sheets.

    The sheet "Before shift to Right" shows what I currently have. The other sheet, "After shift to Right", shows how I'd like to move all the empty cells to right justify on column N.

    I have a spreadsheet with a few thousand rows so I'm looking for a way to automate this task. Any suggestions?
    Attached Files Attached Files

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to shift cells to the right

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to shift cells to the right

    If the blanks may not always be contiguous on each line,

    Please Login or Register  to view this content.
    EDIT: Probably better all around.
    Last edited by shg; 05-20-2019 at 12:41 PM.

  6. #6
    Registered User
    Join Date
    06-22-2007
    Posts
    4

    Re: How to shift cells to the right

    This worked perfectly. Thanks for your help

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to shift cells to the right

    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. Move cells based on cell length *shift cells right) - code required
    By pauldaddyadams in forum Excel Programming / VBA / Macros
    Replies: 49
    Last Post: 11-21-2014, 08:56 AM
  2. [SOLVED] Delete cells when value in cell = 0 and shift up following cells (macro)
    By sandi3006 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-10-2014, 10:24 AM
  3. Caculating # of Day Shift Hrs & Night Shift Hrs of a Given Shift
    By DaKhoda in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-29-2014, 08:36 PM
  4. Macro to Remove Cells = 0 and Shift Remaining Cells on Row Left w/ One Condition
    By Mark V. in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-07-2013, 12:45 PM
  5. [SOLVED] If cells in E and F do not match the values in B and C, shift cells in columns E to H down
    By trickeyja in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-21-2012, 04:24 AM
  6. [SOLVED] Find cells which contain specific word, delete cells and shift left.
    By BPSJACK in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-24-2012, 07:00 AM
  7. [SOLVED] Skip cells with TAB/SHIFT+TAB but allow arrow keys/mouse selection of skipped cells
    By Wescotte in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2005, 02:05 PM

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