Link to home
Start Free TrialLog in
Avatar of Mark_Co
Mark_CoFlag for United States of America

asked on

How to delete an excel cell and auto shift left/Keyboard shortcut for deleting a cell and shift row left

Anybody know how to delete an Excel cell and auto shift a row left upon deletion / Keyboard shortcut for deleting a cell and shift row left?
Avatar of regmigrant
regmigrant
Flag of United Kingdom of Great Britain and Northern Ireland image

you can record a macro to do it for you: enable the developer tab if you haven't already - right click ribbon, customise ribbon, select the developer tick box in the right hand pane.

Select the cell you want to delete
On developer tab click Record Macro and give it a name and a shortcut key (ctrl+d for example)
right click, delete, shift cells left
Stop recording

now you can select any cell and hit ctrl-d
ATL + H + D +D +L, Enter is keyboard shortcut in Excel 2013 for deleting a selected cell, and shifting the rest of the row to the left. Do it slowly.

In Excel 2003, the equivalent is ALT + E + D +L, Enter.

The comma in the above shortcuts means to release the ALT key before hitting Enter.
Alternative keystroke routine is:

Ctrl + Minus Key, L & Enter.

You may be able to do away with pressing L and just press enter, depends on the default selection in the Deletion pop up. The various combinations of cell selections I have checked, the default is Shift Left, maybe because it is the first in the list.

Thanks
Rob H
Avatar of Mark_Co

ASKER

What about for Excel 2011 for Mac? I couldn't get those shortcuts to work. They just entered in strange characters instead.
the macro approach should still work :)

in Excel for windows pressing alt makes the ribbon display a series of shortcut keys over each group in the ribbon, alt + h gives a shortcut to every visible item on the home tab. the sequence given above is just a matter of following those shortcuts - so alt h d brings up the 'shift cells' dialog then l selects shift cells left and enter confirms.

the mac should have equivalent shortcuts probably using the 'mac' key or whatever you call that one with the squiggles.
ASKER CERTIFIED SOLUTION
Avatar of byundt
byundt
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mark_Co

ASKER

YES! Thank you all so much. This one worked and was the simplest solution.