Insert Row

mizunobill

New Member
Joined
Feb 5, 2004
Messages
13
I am just learning Excel is there a way to have a line insert automatically when a condition is met?

For example if I have column that has account numbers entered it, I would like to have a row inserted when the account number changes.

Acct #
225
225
225
226 Since this changes I want a line inserted??

Thanks if you can help!!
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
There's nothing automatic that does that, but you can follow the following steps, assuming your data is in column A (with the header in A1)

1. In B2 enter the following formula:

Code:
=IF(A2<>A1,1,"")

2. Drag it down until the last cell in A where you have data.

3. Select column B, by clicking on the header.

4. Press F5, click on "Special", then select "Formulas" and "Numbers", and press Ok.

5. Press Control and the "+" key to bring up the "Insert" dialog.

6. Select "Entire Row" and click OK.

And you're done... you can now delete column B if you want.
 
Upvote 0

Forum statistics

Threads
1,215,734
Messages
6,126,543
Members
449,316
Latest member
sravya

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top