Repeat at regular interval after first occurrence

MrNal

New Member
Joined
Jul 24, 2018
Messages
6
I have a data like below. Lets say for the first occurrence in the First row, I use a formula to specify that a value, say 55, must be inputted in Feb and the data inputted every 3 months subsequently i.e the next one in May. I tried using mod and count but not working as I want it to. Will be grateful for assistance on how to achieve what I described.


Jan Feb Mar Apr May June July Aug Sept Oct Nov Dec
First 1st occurrence in Feb...repeat every 3 months thereafter
2nd 1st occurrence in April...repeat every 4 months after
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Eventually figured it out. In case useful for someone else this is what I did. Used IF, SUM and OFFSET to accomplish task. Along the lines... IF(SUM(OFFSET(Previous Cell,0,-2,,3))=0, perform action, 0). Since will only SUM to 0 every 3 cells (3 months), action get performed every 3 months.
 
Upvote 0
If you only have 12 months across(A:L), and may rows down, why dont you just do something like...
B2=55
C2=66
D2=77
E2=B2
then just copy that across as needed.
You can then copy from E2:L2 down as needed. Your current formula, while correct, will be very inefficient on a large number of rows.
 
Upvote 0
Unfortunately, have 20 years of monthly data across and not just 12 months. Also, before this particular action of repeating every 3 months (actual frequency depends on the row) , there are actually other actions that are performed in the beginning.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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