Auto increment a cell and loop

dilanhj

New Member
Joined
Dec 8, 2019
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
Hi Guys,

Can anyone help me write a formula to auto increment a cell when sheet is auto refreshed/saved. Incremental number should start with "1" and increment till "10" and loop back once again to "1". the number returned will be used to lookup up a row.

I did used a formula with rand() function which is "=INT(RAND()*(10-1)+1)" and it returns a random number from the range 1 to 10.

Regards
Dilan
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Hi,

There is no need for a formula ...if there is a precise event which should trigger the increment ...

Indeed, an event macro can handle these situations

Hope this will help
 
Upvote 0
Hi,

There is no need for a formula ...if there is a precise event which should trigger the increment ...

Indeed, an event macro can handle these situations

Hope this will help
Hi James,

I need a help on this. Im slightly good with formulas. but not good with macros or VBA

Regards
Dilan
 
Upvote 0

Forum statistics

Threads
1,214,622
Messages
6,120,585
Members
448,972
Latest member
Shantanu2024

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