Menu
×
   ❮   
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE
     ❯   

Excel Tutorial

Excel HOME Excel Introduction Excel Get Started Excel Overview Excel Syntax Excel Ranges Excel Fill Excel Move Cells Excel Add Cells Excel Delete Cells Excel Undo Redo Excel Formulas Excel Relative Reference Excel Absolute Reference Excel Arithmetic Operators Excel Parentheses Excel Functions

Excel Formatting

Excel Formatting Excel Format Painter Excel Format Colors Excel Format Fonts Excel Format Borders Excel Format Numbers Excel Format Grids Excel Format Settings

Excel Data Analysis

Excel Sort Excel Filter Excel Tables Excel Conditional Format Excel Highlight Cell Rules Excel Top Bottom Rules Excel Data Bars Excel Color Scales Excel Icon Sets Excel Manage Rules (CF) Excel Charts

Table Pivot

Table Pivot Intro

Excel Case

Case: Poke Mart Case: Poke Mart, Styling

Excel Functions

AND AVERAGE AVERAGEIF AVERAGEIFS CONCAT COUNT COUNTA COUNTBLANK COUNTIF COUNTIFS IF IFS LEFT LOWER MAX MEDIAN MIN MODE NPV OR RAND RIGHT STDEV.P STDEV.S SUM SUMIF SUMIFS TRIM VLOOKUP XOR

Excel How To

Convert Time to Seconds Difference Between Times NPV (Net Present Value) Remove Duplicates

Excel Examples

Excel Exercises Excel Certificate

Excel References

Excel Keyboard Shortcuts


Excel Move Cells


Moving Cells

There are two ways to move cells: Drag and drop or by copy and paste.


Drag and Drop

Let's start by typing or copying some values that we can work with:

Copy Values

Next, start by marking the area A1:B4:

You can drag and drop the range by pressing and holding the left mouse button on the border. The mouse cursor will change to the move symbol when you hover over the border.

Drag and drop it when you see the symbol.

Move the range to B2:C5 as shown in the picture:

Great! Now you have created more space, so that we have room for more data.

Note: It is important to give context to the data, making the spreadsheet easy to understand. This can be done by adding text which explains the data.

Let's go ahead and give the data more context. Type or copy the following values:

Copy Values

Yes, that is right, we are looking at Pokemons! Giving context to the data is always helpful.

Next, lets see how we can move data by using cut and paste.



Cut and Paste

Ranges can be moved by cutting and pasting values from one place to another.

Tip: You can cut using the hotkey CTRL+X and paste by CTRL+V. This saves you time.

Mark the range A1:C5

Right click the marked area, and click on the "Cut" command, which has scissors as its icon:

Cutting makes the range white-grey with dotted borders. This indicates that the range is cutted and ready for pasting.

Right click the paste destination B6 and left click the paste icon.




You have successfully cutted and pasted the range from A1:C5 to B6:D10.


Copy and paste

Copy and paste works in the same way as cut and paste. The difference is that it does not remove the original cells.

Let's copy the cells back from B6:D10 to A1:C5.

Tip: You can copy using the hotkey CTRL+C and paste by CTRL+V. This saves you time. Try it!

Mark the range B6:D10.


Right click the marked area, and click on the "Copy" command which has two papers as its icon.

Copying gives the range a dotted green border. This indicates that the range is copied and ready for pasting.

Right click the paste destination A1 and left click the paste icon:




The difference between cutting and copying, is that cutting removes the originals, while copying leaves the originals.

Next, let's delete the original data and keep the data in the A1:C5 range.


Delete Data

Select the original cells and remove them by pressing the "Delete" button on the keyboard:







Test Yourself With Exercises

Excel Exercise:

Type the cell in the bottom right corner of the range B2:C5:

C

Start the Exercise


×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.

Copyright 1999-2024 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.