Total number when adding new clients that we keep only for X years

Question85

New Member
Joined
Jun 21, 2018
Messages
1
Hi everyone,
Here is the idea, I have a column of numbers, let's keep it simple and I will adapt later : let's say the column is 2, 4, 6, 8, 10, ... (2 clients added each time) but at a certain point after X lignes (years) I want to take out the ones added X years ago. That means if X is 10, on the 11th ligne the number should be 22 (11*2) - 2 (the first number) and on the 12 th ligne it should be 24 (12*2) - the ones added on 1st and 2nd lignes ... etc... I would like to keep X years a variable. Tried to catch a loop faisable without VBA but I don't see. Any help would be appreciated. Many thanks in advance it s been a while since I used VBA...

Best
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,623
Latest member
Techenthusiast

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