In this blog post, you will learn about inserting rows or columns within the existing dataset.
Now we need to insert one more column between Mar-21 and May-21, as Apr-21, to adjust our missing dataset.
So first of all, make our active cell where we want to insert a new column.
Here we want to insert a new column just before column May-21.
Image -01
Put your cursor in the first cell of column “D”.
Go to the Home tab then the ‘Cells’ group at the extreme right side of the Ribbon.
Image-02
See the image above for help.
Click on the “Insert” drop-down, there is 4 option available here.
- Insert Cells
- Insert Sheet Rows
- Insert Sheet Column
- Insert Sheet
You have to choose from these options, as per your requirements.
For inserting a new column within the dataset, select one option from the above list.
So choose option “3 – Insert Sheet Columns”.
Click on this option, to insert a new column here before our
active cell.
Here active cell column is D2, a new column will be inserted here, and the existing dataset pushed one column back.
See the image below:-
Image-03
A new column has been inserted.
And now, assign the name as Apr-21 to our newly inserted column and put our new data here.
See in the below dataset, our missing data is adjusted and looks like a complete dataset now.
Image -04
Insert New Rows
within Existing Dataset.
In the same way, we can insert a new “Rows” within the existing dataset and adjust our missing dataset.
See the image below: -
Go to the “Home” tab and go to the “Cells” group and click “Insert” drop-down and select one of the options from the below option:-
- Insert Cells
- Insert Sheet Rows
- Insert Sheet Column
- Insert Sheet
Here we will select option “2 – Insert Sheet Rows” and Click on it.
New empty rows will be inserted, in place of selected rows.
See the image below:-
Image -06
Please feel free to put your comments or suggestion in the given box below.
Thank you
Narendra Singh
Related Post
Easiest Way to Copy and Paste Data in Excel VBA
How to Change the Background Color in Excel VBA
How to use the MsgBox in Excel VBA
What is Current Region Property in VBA
How to Change or Rename the Sheet Name in Excel VBA
No comments:
Post a Comment