Renumber list starting with a specified gap and restarting from first value when max value met

karenjoy511

New Member
Joined
Sep 12, 2014
Messages
31
I would like to know if there is a trick to doing this: What I have is a table with sequential numbers in the first column with values from a specified minimum to a specified maximum. In the second column I want to add a varying offset amount to the numbers in the first column, but when that sum exceeds the specified maximum, the numbers in column 2 should start again at the given minimum.

For instance, let's say I have an offset amount of 3, the minimum value is 8 and the maximum value is 13. The numbers in column 2 should increment up to 13 (the maximum), then drop back down to 8 (the minimum).

[TABLE="width: 500"]
<tbody>[TR]
[TD]Column 1[/TD]
[TD]Column2[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]13[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]10[/TD]
[/TR]
</tbody>[/TABLE]

Thanks!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Forum statistics

Threads
1,226,224
Messages
6,189,733
Members
453,566
Latest member
ariestattle

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