# Code to add 1

#### Wrecker1

##### New Member
I have a cell (B1)that has 35-39. I want to be able to make B2 36-40, B3 37-41 And so on...

Not sure of the code....or if it can be done
Thanks
Wrecker1

### Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
On 2002-09-27 07:12, Wrecker1 wrote:
I have a cell (B1)that has 35-39. I want to be able to make B2 36-40, B3 37-41 And so on...

Not sure of the code....or if it can be done
Thanks
Wrecker1
Hi,
Not a code but could be of some help.

Eli
<FONT COLOR=#339966>To see the formula in the cells just click on the cells hyperlink</FONT>

<FONT COLOR=#339966 SIZE=1>The above image was automatically generated by [HtmlMaker V1.23]</FONT>
<FONT COLOR=#339966 SIZE=1>If you want this code, <A HREF=mailto:corosuke@chan.co.jp>click here</A> and Colo will email the file to you.</FONT>
<FONT COLOR=#339966 SIZE=1>This code was graciously allowed to be modified: by <A HREF=mailto:ivanmoala@xtra.co.nz>Ivan F Moala</A> All credit to Colo</FONT>
</CENTER>

On 2002-09-27 07:12, Wrecker1 wrote:
I have a cell (B1)that has 35-39. I want to be able to make B2 36-40, B3 37-41 And so on...

Not sure of the code....or if it can be done
Thanks
Wrecker1

Try this code:

x = 35
y = 39
For i = 1 To 50
Cells(i, 2) = x & "-" & y
x = x + 1
y = y + 1
Next

Replies
1
Views
60
Replies
3
Views
195
Replies
8
Views
145
Replies
8
Views
281
Replies
10
Views
333

1,203,541
Messages
6,056,006
Members
444,840
Latest member
RazzelDazel

### 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?

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