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

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
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,224,551
Messages
6,179,472
Members
452,915
Latest member
hannnahheileen

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