Split the total rows for every 250

nianchi111

Board Regular
Joined
Aug 24, 2007
Messages
197
Office Version
  1. 365
Hi,

I have an excel file with data in Column A and B.

On an average it will be somwhere 3000 line items.

I need to find the first 250 line items and insert a row below and Add up the Column B and repeat the same process of splitting 250 till the end of line items.

Challenge is that in Column A we will be having the same numbers. for example

Example A

S.No Column A Column B
245 123456 25
246 123456 35
247 123456 45
248 123456 55
249 123344 25
250 123344 250
251 122445 77
252 122445 54
253 122445 26
254 122445 11

In this example its clear that we need to insert a row below the S.no 250 and add the value of column B.


Example B

S.No Column A Column B
245 1122553 25
246 1122553 35
247 123456 45
248 123456 55
249 123456 25
250 123456 250
251 123456 77
252 123456 54
253 122445 26
254 122445 11

If you see the s.no 250 its has the similar number in the below cells so we need to insert a row at 246 since it does not have the same number in the below cell.

Hope anyone helps me with this.... thanks in advance....
Thanks,
Vimal Vikraman
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,636
Latest member
laura12345

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