If you want to replace the contents of one column with another in Excel, you must do the following:
First case) two adjacent columns or rows or cells (must be adjacent)
Method 1) For example, suppose in the following figure you want to swap the contents of two adjacent columns A and B together. To do this, select the right column. (The right column must be selected. To replace the contents of two rows, you must select the bottom row.)
After selecting the right column (column B), cut it (Ctrl + X companies). Then select the left column (column A) and press the Ctrl and + keys at the same time to switch operations.
Case 2) Unlike the above method, it is no longer necessary to cut the right column. As shown below, for example, just select the contents of column A, hold the mouse over the green box in column A, hold down the Shift key and drag the mouse pointer to the right of column B (Drag). Release the mouse button when 工 appears. The contents of the two columns are simply swapped. You can also change the contents of rows and cells in the same way.