• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to increment number

Hang on...you want to have something like 4.1 - 4.2 - 4.3 ------ 4.10 - 4.11 ------ 4.19 - 4.20 ?

Wouldn't it be better to have 4.01 - 4.02 and so forth?
How do you intend to tell 4.1 from 4.10?

As far as VBA, you only need a FOR loop

For ind = 1 to 20
yourtext = "4." & indx
Next


Formula
Type 4.1 in cell A1
Type this formula in A2 and copy down
="4." & RIGHT(A1;LEN(A1)-2)+1
 
Hi Abhijeet,

I think It should be 4.01, 4.02, .... 4.20. If so you can use below formula:

=4+MOD(ROWS(A$1:A1)/100,1)


Regards,
 
@Abhijeet

Replace the 4 with a choice of your number OR refrence the 4 to a cell and use the cell in the formula as shown below.

=$B$1+MOD(ROWS(A$1:A1)/100,1)

Where in B1 is the number of your choice.

Regards,
 
Hi

I have data i want sort this data with number format please tell me how to do this
 

Attachments

  • temp.xlsx
    10.4 KB · Views: 5
Back
Top